:root {
  --bg: #f4f5f7;
  --bg-2: #eef0f4;
  --card: #ffffff;
  --card-2: #f6f7f9;
  --line: #e7e9ee;
  --text: #1c2430;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --accent: #f4693b;
  --accent-2: #ff7f57;
  --on-accent: #ffffff;
  --green: #16a34a;
  --red: #ef4444;
  --amber: #f59e0b;
  --cyan: #0ea5e9;
  --pink: #ec4899;
  --desk: #e6e8ee;
  --radius: 18px;
  --shadow: 0 4px 20px rgba(20,25,40,.05);
  --panel-gap: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--desk); color: var(--text); -webkit-font-smoothing: antialiased; padding: var(--panel-gap); }
#app { display: grid; grid-template-columns: 258px 1fr; min-height: calc(100vh - var(--panel-gap) * 2); background: var(--card); border-radius: 26px; box-shadow: 0 12px 40px rgba(20,25,40,.09); }
svg.ic { display: inline-block; vertical-align: -0.15em; }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--card); border-right: 1px solid var(--line); border-radius: 26px 0 0 26px; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: var(--panel-gap); height: calc(100vh - var(--panel-gap) * 2); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-full { height: 34px; width: auto; display: block; }
.brand-mark { height: 34px; width: auto; display: none; }
.brand-account { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; margin-bottom: 16px; }
.brand-account .ba-avatar { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#f0a83c,#ef5b6b); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.brand-account .ba-info { line-height: 1.3; overflow: hidden; }
.brand-account .ba-info b { font-size: 13.5px; display: block; }
.brand-account .ba-info span { font-size: 12px; color: var(--faint); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: transparent; border: none; border-radius: 12px; color: var(--muted); font: inherit; font-weight: 500; font-size: 14.5px; cursor: pointer; transition: .15s; text-align: left; }
.nav-item:hover { background: var(--card-2); color: var(--text); }
.nav-item.active { background: var(--bg-2); color: var(--text); }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-icon { display: grid; place-items: center; width: 20px; color: var(--faint); flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.nav-badge[data-zero="true"] { display: none; }
.sidebar-foot { margin-top: auto; padding: 14px 8px 4px; }
.demo-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--amber); background: rgba(242,178,30,.12); border: 1px solid rgba(242,178,30,.3); padding: 4px 9px; border-radius: 20px; margin-bottom: 8px; }
.sidebar-foot p { font-size: 12px; color: var(--faint); line-height: 1.5; }

/* ---------- Main + Topbar ---------- */
.main { padding: 22px 30px 40px; background: var(--bg); border-radius: 0 26px 26px 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 11px 18px; }
.search-ic { display: grid; place-items: center; color: var(--faint); }
.search input { flex: 1; background: transparent; border: none; color: var(--text); font: inherit; font-size: 14px; }
.search input:focus { outline: none; }
.search input::placeholder { color: var(--faint); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.tb-btn:hover { background: var(--card-2); color: var(--text); }
.tb-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.tb-badge[data-zero="true"] { display: none; }
.tb-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); background: linear-gradient(135deg,#f0a83c,#ef5b6b); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.menu-toggle { width: 44px; height: 44px; flex-shrink: 0; }

/* ---------- Sidebar recolhida ---------- */
#app.sidebar-collapsed { grid-template-columns: 74px 1fr; }
.sidebar-collapsed .sidebar { padding: 22px 12px; }
.sidebar-collapsed .brand { justify-content: center; padding: 4px 0 18px; }
.sidebar-collapsed .brand-full,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-badge,
.sidebar-collapsed .brand-account .ba-info,
.sidebar-collapsed .sidebar-foot { display: none; }
.sidebar-collapsed .brand-mark { display: block; }
.sidebar-collapsed .brand-account { justify-content: center; padding: 10px; }
.sidebar-collapsed .nav-item { justify-content: center; padding: 12px 0; }
.sidebar-collapsed .nav-icon { width: auto; }

.view-head { margin-bottom: 22px; }
.view-head.with-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.view-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.view.hidden { display: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-head h3 { font-size: 15px; font-weight: 700; }
.card-sub { font-size: 12.5px; color: var(--muted); }

.range-picker, .schedule-toggle { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 30px; padding: 3px; gap: 3px; }
.seg { border: none; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; padding: 7px 16px; border-radius: 30px; cursor: pointer; transition: .15s; }
.seg.active { background: var(--accent); color: var(--on-accent); }

/* ---------- KPI (estilo referência) ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi-head { display: flex; justify-content: space-between; align-items: flex-start; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi-label .info-ic { color: var(--faint); display: grid; place-items: center; }
.kpi-badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-val { font-size: 27px; font-weight: 800; letter-spacing: -.5px; margin: 10px 0 4px; }
.kpi-vs { font-size: 12.5px; color: var(--faint); margin-bottom: 10px; }
.kpi-vs b { color: var(--muted); font-weight: 600; }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 20px; }
.kpi-delta.up { color: var(--green); background: rgba(55,160,40,.14); }
.kpi-delta.down { color: var(--red); background: rgba(245,64,42,.14); }

/* ---------- Analytics card (referência) ---------- */
.analytics-card { margin-bottom: 18px; }
.an-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.an-head h3 { font-size: 16px; font-weight: 700; margin-right: auto; }
.an-metrics { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 30px; padding: 3px; gap: 3px; }
.an-stats { display: flex; gap: 26px; margin-bottom: 12px; flex-wrap: wrap; }
.an-stat { display: flex; align-items: center; gap: 9px; }
.an-stat .as-label { font-size: 13px; color: var(--muted); }
.an-stat .as-val { font-size: 17px; font-weight: 800; }
.as-trend { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; }
.as-trend.up { background: var(--green); }
.as-trend.down { background: var(--red); }
.as-trend + span { font-size: 12.5px; font-weight: 700; }

/* charts */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }

/* audience */
.audience-split { display: flex; flex-direction: column; gap: 13px; }
.aud-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px; font-size: 13.5px; }
.aud-dot { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.aud-bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-top: 5px; }
.aud-bar > i { display: block; height: 100%; border-radius: 4px; }
.aud-val { font-weight: 700; font-size: 13.5px; }

/* donut (tipo de conteúdo / gênero) */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 130px; }
.dl-row { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 9px; font-size: 13.5px; }
.dl-dot { width: 12px; height: 12px; border-radius: 4px; }
.dl-label { color: var(--muted); }
.dl-val { font-weight: 800; }

/* público (analytics) */
.aud-block { margin-bottom: 16px; }
.aud-block:last-child { margin-bottom: 0; }
.aud-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--faint); margin-bottom: 10px; }
.aud-bars { display: flex; flex-direction: column; gap: 9px; }
.aud-bars .aud-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 11px; }
.aud-key { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-bars .aud-bar { margin-top: 0; }
.aud-bars .aud-bar > i { background: var(--accent); }
.aud-note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.aud-skel { display: flex; flex-direction: column; gap: 12px; }
.aud-skel > div { height: 14px; border-radius: 6px; background: var(--bg-2); animation: audpulse 1.2s ease-in-out infinite; }
.aud-skel > div:nth-child(2) { width: 80%; } .aud-skel > div:nth-child(3) { width: 65%; } .aud-skel > div:nth-child(4) { width: 72%; }
@keyframes audpulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* top posts */
.top-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-item { display: flex; gap: 12px; align-items: center; padding: 11px; background: var(--bg-2); border-radius: 12px; }
.tp-thumb { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.tp-body { flex: 1; min-width: 0; }
.tp-text { font-size: 13px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tp-stats { display: flex; gap: 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.tp-stats span { display: inline-flex; align-items: center; gap: 4px; }
.tp-stats b { color: var(--text); font-weight: 700; }

/* ---------- Anúncios ---------- */
.ads-hero { max-width: 620px; margin: 0 auto; text-align: center; padding: 34px 28px; }
.ads-icon { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.ads-hero h2 { font-size: 22px; font-weight: 800; }
.ads-hero p { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; line-height: 1.6; }
.ads-mp-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 22px; }
.ads-mp { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; }
.ads-mp b { font-size: 20px; font-weight: 800; color: var(--faint); display: block; }
.ads-mp small { font-size: 11px; color: var(--muted); }
.ads-note { display: flex; gap: 9px; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.ads-note svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

/* ---------- Métricas: melhores horários e melhor/pior post ---------- */
.best-times { display: flex; flex-direction: column; gap: 12px; }
.bt-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; }
.bt-when { font-size: 13px; font-weight: 600; }
.bt-bar { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.bt-bar > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bt-val { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bt-note { font-size: 11.5px; color: var(--faint); margin-top: 12px; }
.perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.perf-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.perf-card.best { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.perf-card.worst { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.perf-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; color: var(--muted); }
.perf-card.best .perf-label { color: var(--green); }
.perf-card.worst .perf-label { color: var(--red); }
.perf-body { display: flex; gap: 12px; text-decoration: none; color: inherit; align-items: center; }
.perf-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #000; flex-shrink: 0; display: grid; place-items: center; }
.perf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.perf-cap { font-size: 13.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.perf-stats { display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.perf-stats span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Network tabs ---------- */
.net-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.net-tab { display: flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.net-tab .nd { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.net-tab.active { color: var(--text); border-color: var(--accent); background: var(--card-2); }
.analytics-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-label { font-weight: 700; font-size: 16px; min-width: 150px; text-align: center; text-transform: capitalize; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-dow { background: var(--bg-2); padding: 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cal-cell { background: var(--card); min-height: 108px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.cal-cell.out { background: var(--bg-2); opacity: .5; }
.cal-cell.today .cal-day { background: var(--accent); color: var(--on-accent); }
.cal-day { font-size: 12.5px; font-weight: 700; color: var(--muted); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; }
.cal-post { font-size: 11px; padding: 4px 7px; border-radius: 7px; background: var(--card-2); border-left: 3px solid var(--accent); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.cal-post .cp-dots { display: flex; gap: 2px; flex-shrink: 0; }
.cal-post .cp-dot { width: 12px; height: 12px; border-radius: 3px; font-size: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.cal-post.published { border-left-color: var(--green); opacity: .85; }
.cal-post.failed { border-left-color: var(--red); }
.cal-post[data-sched] { cursor: pointer; }

/* ---------- Composer ---------- */
.composer-grid { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .4px; }
.network-picker { display: flex; flex-wrap: wrap; gap: 9px; }
.net-chip { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 30px; background: var(--bg-2); color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.net-chip .net-dot { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.net-chip.on { color: var(--text); border-color: transparent; background: var(--card-2); }
.net-chip .check { opacity: 0; display: inline-grid; place-items: center; color: var(--green); transition: .15s; }
.net-chip.on .check { opacity: 1; }
textarea#postText, #composerText { width: 100%; min-height: 150px; resize: vertical; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--text); font: inherit; font-size: 15px; line-height: 1.55; }
textarea#postText:focus, #composerText:focus { outline: none; border-color: var(--accent); }
.counter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.count-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.count-pill.over { color: var(--red); border-color: rgba(245,64,42,.5); background: rgba(245,64,42,.1); }
.count-pill .cp-net { font-weight: 700; }
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; cursor: pointer; transition: .15s; background: var(--bg-2); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--card-2); }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.dz-icon { color: var(--accent); display: grid; place-items: center; }
.dropzone-inner small { color: var(--faint); font-size: 12px; }
.media-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.media-thumb { position: relative; width: 84px; height: 84px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; }
.media-thumb .vid-tag { position: absolute; bottom: 4px; left: 4px; font-size: 10px; background: rgba(0,0,0,.7); padding: 1px 5px; border-radius: 4px; }
.schedule-toggle .seg.active { background: var(--accent); color: var(--on-accent); }
#scheduleAt { margin-top: 12px; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); font: inherit; color-scheme: light; }
#scheduleAt.hidden { display: none; }
.editor-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.btn { font: inherit; font-weight: 600; font-size: 14.5px; padding: 11px 22px; border-radius: 30px; cursor: pointer; border: 1px solid transparent; transition: .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn .btn-ic { display: grid; place-items: center; }
.btn.sm { padding: 8px 15px; font-size: 13.5px; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(242,168,60,.35); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { background: var(--card-2); color: var(--text); }

.previews { position: sticky; top: 20px; }
.previews-head { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 12px; }
.preview-stack { display: flex; flex-direction: column; gap: 16px; }
.preview-empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--faint); font-size: 14px; }
.pv { background: #fff; color: #0d0d0d; border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,.08); }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pv-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.pv-user { display: flex; flex-direction: column; line-height: 1.3; }
.pv-user b { font-size: 14px; }
.pv-user span { font-size: 12.5px; color: #65676b; }
.pv-net-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.pv-body { padding: 0 14px 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.pv-body .tag { color: #1d9bf0; }
.pv-media { display: grid; gap: 2px; background: #000; }
.pv-media.n1 { grid-template-columns: 1fr; }
.pv-media.n2, .pv-media.n3, .pv-media.n4 { grid-template-columns: 1fr 1fr; }
.pv-media img, .pv-media video { width: 100%; height: 100%; max-height: 260px; object-fit: cover; display: block; }
.pv-media.n1 img, .pv-media.n1 video { max-height: 320px; }
.pv-foot { display: flex; gap: 18px; padding: 10px 14px; border-top: 1px solid rgba(0,0,0,.07); color: #65676b; font-size: 13px; }
.pv-foot span { display: flex; align-items: center; gap: 5px; }
.pv-warn { margin: 0 14px 12px; font-size: 12px; color: #b4453f; background: #fdecea; border: 1px solid #f5c6c2; border-radius: 8px; padding: 7px 10px; display: flex; align-items: center; gap: 6px; }
.pv.black { background: #000; color: #fff; border-color: #222; }
.pv.black .pv-user span { color: #a8a8a8; }
.pv.black .pv-foot { border-color: #222; color: #a8a8a8; }

/* ---------- Inbox ---------- */
.inbox-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.inbox-filters .seg { border: 1px solid var(--line); }
.inbox-list { display: flex; flex-direction: column; gap: 12px; }
.inbox-item { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; align-items: flex-start; }
.inbox-item.unread { border-left: 3px solid var(--accent); }
.ib-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; position: relative; }
.ib-net { position: absolute; bottom: -3px; right: -3px; width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; border: 2px solid var(--card); }
.ib-body { flex: 1; min-width: 0; }
.ib-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.ib-name { font-weight: 700; font-size: 14px; }
.ib-type { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-2); padding: 2px 8px; border-radius: 20px; }
.ib-time { font-size: 12px; color: var(--faint); margin-left: auto; }
.ib-text { font-size: 14px; line-height: 1.5; color: var(--text); }
.ib-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------- Reports ---------- */
.report-section { margin-bottom: 26px; }
.report-section h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.report-summary { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; line-height: 1.7; font-size: 14.5px; color: var(--muted); }
.report-summary b { color: var(--text); }
.report-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.report-table th, .report-table td { padding: 12px 16px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.report-table th { background: var(--bg-2); color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: .5px; }
.report-table td.num { text-align: right; font-weight: 600; }
.report-table tr:last-child td { border-bottom: none; }
.rt-net { display: flex; align-items: center; gap: 9px; }
.rt-net .nd { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }

/* ---------- misc ---------- */
.icon-btn { background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn:hover { background: var(--card-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(245,64,42,.5); }
.empty-state, .preview-empty.mini { text-align: center; padding: 44px 20px; color: var(--faint); border: 1.5px dashed var(--line); border-radius: 14px; }
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.acct-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.acct-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acct-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; font-weight: 800; color: #fff; }
.acct-name { font-weight: 700; font-size: 16px; }
.acct-handle { font-size: 13px; color: var(--muted); }
.acct-status { font-size: 12.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.acct-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.acct-status.connected { color: var(--green); }
.acct-status.connected .dot { background: var(--green); }
.acct-status.disconnected { color: var(--faint); }
.acct-status.disconnected .dot { background: var(--faint); }
.acct-card .btn { width: 100%; justify-content: center; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--card-2); border: 1px solid var(--line); color: var(--text); padding: 13px 22px; border-radius: 30px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; display: flex; align-items: center; gap: 10px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .t-icon { display: grid; place-items: center; color: var(--accent); }

/* ---------- Format picker ---------- */
.format-picker { display: flex; flex-direction: column; gap: 10px; }
.fmt-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.fmt-net { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 110px; }
.fmt-net .nd { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; }
.fmt-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fmt-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.fmt-pill:hover { color: var(--text); }
.fmt-pill.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.fmt-empty { font-size: 13px; color: var(--faint); padding: 4px 2px; }

/* ---------- Composer tabs (por rede) ---------- */
.composer-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ctab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: none; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctab:hover { color: var(--text); }
.ctab .nd { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; }
.ctab.on { color: var(--text); border-bottom-color: var(--accent); }
.ctab-fmt { font-size: 11px; font-weight: 600; color: var(--faint); background: var(--bg-2); padding: 2px 8px; border-radius: 20px; }
.ctab.on .ctab-fmt { color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.label-row > label { margin-bottom: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.link-btn:hover { color: var(--accent-2); }
.pv-item.pv-active .pv, .pv-item.pv-active .pv-vertical, .pv-item.pv-active .pv-yt { outline: 2px solid var(--accent); outline-offset: 3px; }
.adv .adv-ic-svg { color: var(--accent); vertical-align: -0.2em; }

/* seleção única de rede */
.network-picker.single .net-chip.on { background: color-mix(in srgb, var(--accent) 16%, var(--card-2)); border-color: var(--accent); color: var(--text); }
.net-chip.off { opacity: .6; }
.chip-off { font-size: 10.5px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); padding: 2px 7px; border-radius: 20px; margin-left: 2px; }

/* seções organizadas do composer */
.comp-head { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 500; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; }
.comp-head .chi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.comp-head b { font-weight: 800; }
.comp-fmt { color: var(--accent); font-weight: 700; }
details.comp-section { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
summary.comp-section-title { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 14px 16px; margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; user-select: none; }
summary.comp-section-title::-webkit-details-marker { display: none; }
summary.comp-section-title:hover { color: var(--text); }
.comp-section-title .num { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.comp-section-title .num.alt { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
.cs-chevron { margin-left: auto; color: var(--faint); display: grid; place-items: center; transition: transform .2s; }
details.comp-section[open] .cs-chevron { transform: rotate(180deg); }
.comp-section-body { padding: 0 16px 16px; }
.comp-section-body .fmt-extras, .comp-section-body .fmt-extras .extra-card:last-child { margin-bottom: 0; }
.comp-section-body > .sub-field { margin-bottom: 14px; }
.comp-section-body > .sub-field:last-child { margin-bottom: 0; }

/* ---------- Advanced ---------- */
.adv { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 22px; overflow: hidden; }
.adv > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 9px; }
.adv > summary::-webkit-details-marker { display: none; }
.adv .adv-ic { color: var(--accent); display: grid; place-items: center; }
.adv .adv-chevron { margin-left: auto; color: var(--faint); transition: .2s; display: grid; place-items: center; }
.adv[open] .adv-chevron { transform: rotate(180deg); }
.adv-body { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.sub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-field { display: flex; flex-direction: column; gap: 7px; }
.sub-field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.sub-field input, .sub-field textarea, .sub-field select { background: var(--card); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.sub-field input:focus, .sub-field textarea:focus, .sub-field select:focus { outline: none; border-color: var(--accent); }
.sub-field select { color-scheme: light; }
.sub-field .hint { font-size: 11.5px; color: var(--faint); }

/* format-specific extras */
.fmt-extras { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.extra-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.extra-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.extra-head .eh-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Preview: Stories / Reels (9:16) ---------- */
.pv-vertical { width: 232px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; position: relative; margin: 0 auto; background: #111; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.pv-vertical .v-media { position: absolute; inset: 0; }
.pv-vertical .v-media img, .pv-vertical .v-media video { width: 100%; height: 100%; object-fit: cover; }
.pv-vertical .v-gradient { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,.7)); }
.pv-vertical.no-media .v-media { background: linear-gradient(150deg, var(--net, #6c5ce7), #1a1a1a); }
.v-top { position: absolute; top: 0; left: 0; right: 0; padding: 10px 12px; }
.v-progress { display: flex; gap: 4px; margin-bottom: 10px; }
.v-progress i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.4); }
.v-progress i.act { background: #fff; }
.v-user { display: flex; align-items: center; gap: 8px; color: #fff; }
.v-user .v-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.v-user b { font-size: 12.5px; }
.v-user .v-net { margin-left: auto; }
.v-caption { position: absolute; left: 12px; right: 12px; bottom: 54px; color: #fff; font-size: 13.5px; line-height: 1.4; text-shadow: 0 1px 6px rgba(0,0,0,.6); white-space: pre-wrap; word-break: break-word; }
.v-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(255,255,255,.9); color: #111; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; }
.v-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.4); display: grid; place-items: center; color: #fff; backdrop-filter: blur(2px); }
.v-rail { position: absolute; right: 10px; bottom: 70px; display: flex; flex-direction: column; gap: 16px; color: #fff; align-items: center; }
.v-rail span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; }
.v-tag { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: flex; align-items: center; gap: 5px; }

/* ---------- Preview: YouTube 16:9 ---------- */
.pv-yt { background: #0f0f0f; color: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #222; }
.yt-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #FF0000, #7a0000); }
.yt-thumb img, .yt-thumb video { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb .v-play { background: rgba(0,0,0,.55); }
.yt-dur { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.yt-info { display: flex; gap: 10px; padding: 12px 14px; }
.yt-ch { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.yt-meta b { font-size: 14px; display: block; line-height: 1.35; }
.yt-meta span { font-size: 12.5px; color: #aaa; }

/* carousel / thread indicators on feed card */
.pv-carousel-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.pv-carousel-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.2); }
.pv-carousel-dots i.act { background: #1d9bf0; }
.pv-count-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; }
.pv-media-wrap { position: relative; }
.pv-thread-next { margin: 0 14px 12px; padding: 10px 12px; border-left: 2px solid #cfd9de; color: #536471; font-size: 13px; }
.pv.black .pv-thread-next { border-color: #333; color: #8b98a5; }
.pv-fmt-tag { font-size: 10.5px; opacity: .85; font-weight: 600; }

/* ---------- Tela de login ---------- */
.auth-overlay { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 400; padding: 20px; }
.auth-overlay.hidden { display: none; }
.auth-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-brand { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.auth-brand span { color: var(--accent-2); }
.auth-brand .auth-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 17px; }
.auth-logo-img { height: 44px; width: auto; }
.auth-card h2 { font-size: 20px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card input { background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; color: var(--text); font: inherit; font-size: 15px; }
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card .btn.primary { justify-content: center; width: 100%; padding: 13px; margin-top: 4px; }
.auth-error { color: var(--red); font-size: 13px; min-height: 4px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-switch .link-btn { margin-left: 6px; }
.auth-legal { margin-top: 14px; text-align: center; font-size: 12px; }
.auth-legal a { color: var(--faint); text-decoration: none; }
.auth-legal a:hover { color: var(--muted); }

/* ---------- Grade de mídia real ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-cell { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: .15s; }
.media-cell:hover { border-color: var(--accent); }
.mc-thumb { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #000; overflow: hidden; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-cell { cursor: pointer; }
.mc-thumb { position: relative; }
.mc-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; backdrop-filter: blur(2px); }
.mc-stats { display: flex; gap: 14px; padding: 9px 11px; font-size: 12.5px; color: var(--muted); }
.mc-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mc-views { position: absolute; bottom: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 20px; }

/* modal de análise da publicação */
.post-modal { display: flex; flex-direction: column; gap: 14px; }
.pm-media { border-radius: 14px; overflow: hidden; background: #000; max-height: 420px; display: grid; place-items: center; }
.pm-media img, .pm-media video { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.pm-caption { font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.pm-caption .tag { color: var(--accent); }
.pm-date { font-size: 12.5px; color: var(--faint); }
.pm-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-metric { flex: 1; min-width: 90px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: center; }
.pm-metric b { font-size: 20px; font-weight: 800; display: block; }
.pm-metric small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.pm-more { min-height: 8px; }
.pm-loading { font-size: 13px; color: var(--faint); }
.pm-note { font-size: 12.5px; color: var(--faint); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: block; }
.pm-link { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }
.pm-link:hover { color: var(--accent-2); }

/* ---------- Onboarding ---------- */
.ob-overlay { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; z-index: 500; padding: 24px; overflow-y: auto; }
.ob-card { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 30px 24px; box-shadow: var(--shadow); }
.ob-logo { height: 30px; width: auto; display: block; margin: 0 auto 20px; }
.ob-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.ob-progress i { width: 30px; height: 5px; border-radius: 3px; background: var(--line); transition: .2s; }
.ob-progress i.on { background: var(--accent); width: 40px; }
.ob-progress i.done { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ob-h { font-size: 22px; font-weight: 800; letter-spacing: -.4px; text-align: center; }
.ob-sub { color: var(--muted); font-size: 14.5px; text-align: center; margin: 8px 0 22px; }
.ob-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-choices.col { grid-template-columns: 1fr; }
.ob-choice { text-align: left; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 4px; }
.ob-choice:hover { border-color: var(--accent-2); }
.ob-choice.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }
.ob-choice b { font-size: 15px; }
.ob-choice span { font-size: 12.5px; color: var(--muted); }
.ob-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 320px; overflow-y: auto; }
.ob-tag { background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 30px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .15s; }
.ob-tag:hover { color: var(--text); }
.ob-tag.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.ob-input { width: 100%; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; color: var(--text); font: inherit; font-size: 16px; }
.ob-input:focus { outline: none; border-color: var(--accent); }
.ob-done { margin-top: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 13.5px; }
.ob-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ob-nav .btn { min-width: 120px; justify-content: center; }

/* ---------- Card de conexão real (Contas) ---------- */
.real-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.real-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.real-info { display: flex; flex-direction: column; line-height: 1.4; }
.real-info b { font-size: 15px; }
.real-info span { font-size: 13px; color: var(--muted); }
.real-card .btn { margin-left: auto; }
.real-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.real-badge { font-size: 11px; font-weight: 700; color: var(--green); background: rgba(55,160,40,.14); padding: 4px 10px; border-radius: 20px; }
#realConnect { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
#realConnect .real-card { margin-bottom: 0; }
#connectAnother { align-self: flex-start; }
#realConnect [data-connect] { align-self: flex-start; }
.rc-group { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); margin: 8px 2px 2px; }
.rc-group:first-child { margin-top: 0; }

/* ---------- Modal (pop-up criar post) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 200; padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 20px; width: min(1020px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.modal-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.modal-close { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: var(--card-2); color: var(--text); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal .composer-grid { grid-template-columns: 1fr 340px; }
.modal .previews { position: static; }
.modal-foot { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-2); flex-shrink: 0; flex-wrap: wrap; }
.schedule-inline { display: flex; align-items: center; gap: 12px; }
.foot-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.modal-foot #scheduleAt { margin-top: 0; padding: 9px 12px; }
.foot-actions { display: flex; gap: 12px; margin-left: auto; }

/* seletor de rede em círculos */
.channel-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 66px; background: none; border: none; cursor: pointer; padding: 4px 0; }
.ch-avatar { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 2px solid transparent; opacity: .5; transition: .15s; }
.channel:hover .ch-avatar { opacity: .85; }
.channel.on .ch-avatar { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.channel.off .ch-avatar { opacity: .3; }
.ch-name { font-size: 11.5px; font-weight: 600; color: var(--faint); }
.channel.on .ch-name { color: var(--text); }
.ch-check { position: absolute; bottom: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; border: 2px solid var(--card); }
.ch-draft { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--amber); border: 2px solid var(--card); }

/* barra de ferramentas do texto */
.editor-toolbar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; position: relative; flex-wrap: wrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 9px; padding: 7px 11px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s; }
.tool-btn:hover { background: var(--card-2); color: var(--text); }
.tool-btn.suggest { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); margin-left: auto; font-size: 13px; }
.tool-btn.suggest:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.emoji-pop { position: absolute; top: 44px; left: 0; z-index: 6; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; box-shadow: var(--shadow); }
.emoji-pop.hidden { display: none; }
.emoji-i { background: none; border: none; font-size: 19px; cursor: pointer; border-radius: 8px; padding: 4px 5px; line-height: 1; }
.emoji-i:hover { background: var(--card); }
.counter-row { align-items: center; }
.counter-ring { display: block; flex-shrink: 0; }
.count-over { font-size: 12px; font-weight: 700; color: var(--red); }

/* ---------- Equipe / Kanban ---------- */
.folder-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fchip { border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 20px; padding: 6px 13px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fchip.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kan-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; min-height: 200px; }
.kan-head { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0 2px; }
.kan-count { background: var(--card-2); color: var(--muted); border-radius: 20px; padding: 1px 8px; font-size: 11px; }
.kan-cards { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 40px; border-radius: 10px; transition: background .12s; }
.kan-cards.drop { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.kan-card { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; cursor: grab; transition: .12s; }
.kan-card:hover { border-color: var(--accent); }
.kan-card.dragging { opacity: .4; }
.kc-title { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.kc-meta { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.kc-net { width: 22px; height: 18px; border-radius: 5px; color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.kc-date { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.kc-assignee { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.kan-add { margin-top: 10px; background: transparent; border: 1px dashed var(--line); color: var(--faint); border-radius: 9px; padding: 8px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.kan-add:hover { color: var(--text); border-color: var(--accent); }

/* modal menor (ideia / membros) */
.modal.modal-sm { width: min(560px, 100%); }
.modal-sm .modal-body { display: flex; flex-direction: column; gap: 16px; }
.net-toggle { display: flex; flex-wrap: wrap; gap: 7px; }
.ntg { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: var(--bg-2); color: var(--muted); border-radius: 20px; padding: 6px 11px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ntg i { width: 20px; height: 16px; border-radius: 4px; color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; font-style: normal; }
.ntg.on { color: var(--text); border-color: var(--accent); background: var(--card-2); }
.mem-list { display: flex; flex-direction: column; gap: 8px; }
.mem-row { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.mem-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.mem-info { line-height: 1.35; }
.mem-info b { font-size: 14px; display: block; }
.mem-info span { font-size: 12.5px; color: var(--muted); }
.mem-row .icon-btn { margin-left: auto; }

/* botão "+" nos dias do calendário */
.cal-cell.clickable { cursor: pointer; position: relative; transition: background .12s; }
.cal-cell.clickable:hover { background: var(--card-2); }
.cal-add { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 7px; border: none; background: var(--accent); color: var(--on-accent); cursor: pointer; display: none; place-items: center; }
.cal-cell.clickable:hover .cal-add { display: grid; }

@media (max-width: 1050px) {
  #app { grid-template-columns: 1fr; }
  .sub-row, .extra-grid, .modal .composer-grid, .perf-grid, .ob-choices { grid-template-columns: 1fr; }
  .ads-mp-row { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; height: auto; }
  .kpi-row, .analytics-kpis { grid-template-columns: repeat(2,1fr); }
  .dash-grid, .composer-grid, .top-posts { grid-template-columns: 1fr; }
  .previews { position: static; }
  .main { padding: 16px; }
  .calendar { font-size: 11px; }
  .cal-cell { min-height: 78px; }
}
