/* SeuSocial — identidade visual do grupo (mesmos tokens do Suas Notas) */
:root {
  --brand: #1F4FFF; --brand-hover: #1336C4; --brand-text: #1F4FFF; --brand-soft: #E8EDFF; --focus: #C9D5FF;
  --lime: #C8F25A; --on-lime: #121722;
  --ground: #F2F4F1; --surface: #FFFFFF;
  --ink: #121722; --ink-2: #2B3342; --body: #3D4656; --muted: #5A6372;
  --line: #E1E4E9; --line-strong: #CDD2DA;
  --night: #0E1320; --night-text: #EEF1F6; --night-muted: #B3BCCB; --night-line: #263045;
  --ok: #1F7A4D; --ok-bg: #E2F3EA; --error: #B3261E; --error-bg: #FBE7E5;
  --warning: #7A5000; --warning-bg: #FDF1D6; --neutral: #4A5363; --neutral-bg: #ECEDEF;
  --trial: #3743A8; --trial-bg: #E7E9FB;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "Cascadia Mono", monospace;
  --radius-button: 10px; --radius-card: 14px; --radius-card-lg: 18px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(18,23,34,.05), 0 6px 20px rgba(18,23,34,.05);
  --shadow-float: 0 18px 50px rgba(18,23,34,.10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand-text: #8FA8FF; --brand-soft: #1A2550; --focus: #3A55C8;
    --ground: #0E1320; --surface: #121722;
    --ink: #EEF1F6; --ink-2: #D6DCE6; --body: #C9D0DC; --muted: #B3BCCB;
    --line: #263045; --line-strong: #3A4560;
    --night: #182033; --night-line: #2E3A55;
    --ok: #6FD39E; --ok-bg: #12301F; --error: #FF9A90; --error-bg: #3A1512;
    --warning: #F2C86B; --warning-bg: #33270A; --neutral: #C3CAD6; --neutral-bg: #232A38;
    --trial: #AEB6FF; --trial-bg: #1F2450;
    --shadow-card: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    --shadow-float: 0 18px 50px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.6px; }
h2 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.4px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
p { margin: 0; }
code, .mono { font: 500 13px/1.5 var(--font-mono); background: var(--ground); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
small, .muted { color: var(--muted); }
.caption { font-size: 13px; line-height: 1.45; color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 16px; }
.eyebrow { font: 600 15px/1.3 var(--font-sans); color: var(--brand-text); letter-spacing: .2px; }
svg.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brandmark { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--ink); text-decoration: none !important; }
.brandmark svg { width: 32px; height: 32px; flex-shrink: 0; }
.wordmark { font: 800 21px/1 var(--font-display); letter-spacing: -.5px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover { background: var(--ground); }
.nav a.active { background: var(--brand-soft); color: var(--brand-text); }
.nav-label { font: 600 13px/1.3 var(--font-sans); color: var(--muted); padding: 0 12px; margin-bottom: 4px; }
.nav .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; }
.nav .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-bottom { margin-top: auto; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.who { padding: 0 6px; font-size: 13px; line-height: 1.35; }
.who strong { display: block; color: var(--ink); font-size: 14px; }
.who span { color: var(--muted); }
.main { padding: 32px 40px 56px; min-width: 0; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--muted); margin-top: 4px; }
section.block { margin-bottom: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.foot { margin-top: 48px; color: var(--muted); font-size: 13px; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 24px; }
.card-lg { border-radius: var(--radius-card-lg); padding: 32px; box-shadow: var(--shadow-float); }
.card-flat { box-shadow: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: var(--radius-button); border: 1px solid transparent; background: var(--brand); color: #fff; font: 600 15px/1 var(--font-sans); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--brand-hover); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn-sec { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-sec:hover { background: var(--ground); }
.btn-lime { background: var(--lime); color: var(--on-lime); }
.btn-lime:hover { background: var(--lime); filter: brightness(.96); }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.btn-danger { background: transparent; color: var(--error); border-color: transparent; }
.btn-danger:hover { background: var(--error-bg); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-block { width: 100%; }
form.inline { display: inline; margin: 0; }

.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: var(--radius-pill); font: 600 13px/1.4 var(--font-sans); white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.selo-ok { background: var(--ok-bg); color: var(--ok); }
.selo-error { background: var(--error-bg); color: var(--error); }
.selo-warn { background: var(--warning-bg); color: var(--warning); }
.selo-trial { background: var(--trial-bg); color: var(--trial); }
.selo-brand { background: var(--brand-soft); color: var(--brand-text); }

.flash { background: var(--brand-soft); color: var(--ink); border: 1px solid var(--focus); padding: 12px 16px; border-radius: var(--radius-card); margin-bottom: 20px; }
.alert { background: var(--error-bg); color: var(--error); border-radius: 10px; padding: 12px 16px; font-weight: 500; }
.notice { background: var(--warning-bg); color: var(--warning); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.demo-note { display: inline-flex; gap: 8px; align-items: center; background: var(--trial-bg); color: var(--trial); padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; }
.empty { text-align: center; padding: 48px 24px; display: grid; gap: 14px; justify-items: center; }
.empty p { color: var(--muted); max-width: 46ch; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-c, var(--brand)); color: #fff; display: grid; place-items: center; font: 800 16px var(--font-display); flex-shrink: 0; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }
.net { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; border-radius: 7px; background: var(--ground); border: 1px solid var(--line-strong); color: var(--ink-2); font: 700 11px/1 var(--font-sans); flex-shrink: 0; }

.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; font: 500 16px/1.45 var(--font-sans); }
.check li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 7px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.form label.inline, label.inline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
input, textarea, select { font: 400 15px/1.4 var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-button); padding: 10px 12px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; padding: 0; accent-color: var(--brand); }
input[type=color] { width: 64px; height: 40px; padding: 3px; }
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
select { width: auto; padding-right: 30px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 6px 14px 6px 8px; font-weight: 500 !important; cursor: pointer; background: var(--surface); }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.counter { text-align: right; font-weight: 400; font-size: 13px; color: var(--muted); }
.counter.over { color: var(--error); font-weight: 600; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 14px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice label { border: 1px solid var(--line-strong); border-radius: var(--radius-card); padding: 14px; cursor: pointer; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice strong { display: block; font-size: 15px; }
.choice span { font-weight: 400; font-size: 13px; color: var(--muted); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-button); overflow: hidden; background: var(--surface); }
.seg a { padding: 8px 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--brand-soft); color: var(--brand-text); }

/* ---------- Painel / KPIs ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.kpis.k6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 18px 20px; }
.kpi .label { font: 600 13px/1.3 var(--font-sans); color: var(--muted); }
.kpi .value { font: 800 34px/1.1 var(--font-display); letter-spacing: -1px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .delta { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 20px; }
.delta-up { color: var(--ok) !important; }
.delta-down { color: var(--error) !important; }
.brand-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); text-decoration: none !important; border-top: 4px solid var(--brand-c, var(--brand)); }
.brand-card:hover { box-shadow: var(--shadow-float); }
.brand-card .head { display: flex; gap: 12px; align-items: center; }
.brand-card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat b { display: block; font: 800 20px/1.2 var(--font-display); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- Publicações ---------- */
.post { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-card); }
.thumb { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--ground); }
video.thumb { pointer-events: none; }
.thumb-text { display: grid; place-items: center; color: var(--muted); font: 800 20px var(--font-display); }
.post-body { flex: 1; min-width: 0; }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.post .text { margin: 6px 0; white-space: pre-wrap; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: var(--body); }
.brand-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.brand-tag i { width: 8px; height: 8px; border-radius: 50%; }
.targets { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.target { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px 3px 4px; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.target-published { border-color: var(--ok); }
.target-failed { border-color: var(--error); border-radius: 10px; }
.error-text { flex-basis: 100%; color: var(--error); font-size: 12px; padding: 0 6px 4px; }
.post-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.post-actions form { margin: 0; }

/* ---------- Contas ---------- */
.accounts { list-style: none; margin: 0; padding: 0; }
.accounts li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.accounts li:first-child { border-top: 0; padding-top: 0; }
.accounts img.pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.accounts .net-lg { width: 40px; height: 40px; border-radius: 50%; font-size: 13px; }
.accounts small { display: block; }
.accounts.selectable label { display: flex; gap: 14px; align-items: center; width: 100%; cursor: pointer; }
.sync-line { font-size: 13px; color: var(--muted); }
.codebox { position: relative; background: var(--night); color: var(--night-text); border-radius: 12px; padding: 14px 110px 14px 14px; font: 500 13px/1.55 var(--font-mono); white-space: pre-wrap; word-break: break-all; }
.codebox .copy-btn { position: absolute; top: 8px; right: 8px; }
.target:has(.manual-edit) { border-radius: 12px; padding-right: 6px; }
.manual-edit { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 6px 6px; }
.dropzone { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 40px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius-card); cursor: pointer; background: var(--ground); }
.dropzone strong { font: 700 17px var(--font-display); }
.dropzone span { color: var(--muted); font-size: 14px; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.upload-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.upload-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.upload-list .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-list .s { white-space: nowrap; font-weight: 600; color: var(--muted); }
.upload-list li.ok .s { color: var(--ok); }
.upload-list li.error .s { color: var(--error); }
.import-box { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.import-box select { padding: 5px 28px 5px 10px; font-size: 13px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 16px; color: var(--muted); }
.sync-line.bad { color: var(--error); }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 13px/1.3 var(--font-sans); color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { text-align: right; }
table.dense th, table.dense td { padding: 10px 8px; }
table.dense { font-size: 13px; }
.cell-post { display: flex; gap: 10px; align-items: center; min-width: 190px; }
.cell-post .thumb { width: 48px; height: 48px; border-radius: 10px; }
.cell-post p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }

/* ---------- Gráficos ---------- */
.chart-card h3 { margin-bottom: 2px; }
.chart-card .caption { margin-bottom: 10px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 400 12px var(--font-sans); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--brand); opacity: .08; }
.chart .end-dot, .chart .xdot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart .xhair { stroke: var(--line-strong); stroke-width: 1; }
.chart .bar { fill: var(--brand); opacity: .35; }
.chart .bar-best { opacity: 1; }
.chart .bar-value { fill: var(--ink); font: 600 12px var(--font-sans); }
.chart .tip { position: absolute; top: 0; transform: translate(-50%, -100%); pointer-events: none; background: var(--night); color: var(--night-text); border-radius: 10px; padding: 7px 10px; font-size: 13px; line-height: 1.35; white-space: nowrap; z-index: 5; box-shadow: var(--shadow-float); }
.chart .tip b { font: 800 15px var(--font-display); display: block; }
.chart-empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.chart-table { margin-top: 8px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.chart-table .table-wrap { max-height: 240px; overflow: auto; }

/* ---------- Painel da marca (estilo do redesenho) ---------- */
:root { --side: #16257E; --side-2: #1D2F96; --side-text: #EEF1FF; --side-muted: #AFB9E8; --side-line: rgba(255,255,255,.12); }
@media (prefers-color-scheme: dark) { :root { --side: #10195A; --side-2: #18247A; } }
.sidebar { background: var(--side); color: var(--side-text); border-right: 0; gap: 14px; }
.sidebar .brandmark { color: #fff; }
.sidebar .nav-label { color: var(--side-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .9px; margin: 6px 0 2px; }
.sidebar .nav a { color: var(--side-text); opacity: .86; }
.sidebar .nav a:hover { background: var(--side-2); opacity: 1; }
.sidebar .nav a.active { background: #fff; color: var(--side); opacity: 1; font-weight: 600; }
.sidebar .side-bottom { border-top-color: var(--side-line); }
.sidebar .who strong { color: #fff; }
.sidebar .who span { color: var(--side-muted); }
.btn-ghost-light { background: transparent; color: var(--side-text); border-color: var(--side-line); }
.btn-ghost-light:hover { background: var(--side-2); }
.avatar-sm { width: 30px; height: 30px; font-size: 13px; background: var(--side-2); }
.who { display: flex; gap: 10px; align-items: center; }
.badge-n { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 11px/20px var(--font-sans); text-align: center; }
.badge-n.warn { background: #FF9A90; color: #3A1512; }
.brand-switch { background: var(--side-2); border-radius: 12px; }
.brand-switch summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px; cursor: pointer; }
.brand-switch summary::-webkit-details-marker { display: none; }
.brand-switch summary .avatar { width: 34px; height: 34px; font-size: 14px; }
.brand-switch small { display: block; color: var(--side-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.brand-switch strong { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-switch .chev { color: var(--side-muted); }
.brand-switch[open] .chev { transform: rotate(180deg); }
.brand-switch-list { display: grid; gap: 2px; padding: 0 6px 8px; max-height: 260px; overflow-y: auto; }
.brand-switch-list a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: var(--side-text); font-size: 14px; text-decoration: none; }
.brand-switch-list a:hover, .brand-switch-list a.on { background: rgba(255,255,255,.1); }
.brand-switch-list .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.brand-switch-list .all { color: var(--lime); font-weight: 600; border-top: 1px solid var(--side-line); border-radius: 0; margin-top: 4px; padding-top: 10px; }

.main { max-width: 1280px; }
.hero-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow-bar { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--font-sans); color: var(--brand-text); letter-spacing: .3px; margin-bottom: 8px; }
.eyebrow-bar::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--brand); }
.eyebrow-bar.on-dark { color: var(--night-muted); }
.eyebrow-bar.on-dark::before { background: var(--lime); }
h1.display { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -2px; }
.cap::first-letter { text-transform: uppercase; }
.lead { color: var(--muted); font-size: 16px; margin-top: 10px; max-width: 64ch; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pick { display: grid; gap: 16px; color: var(--ink); text-decoration: none !important; border-left: 5px solid var(--brand-c, var(--brand)); }
.pick:hover { box-shadow: var(--shadow-float); }
.pick .head { display: flex; gap: 14px; align-items: center; }
.pick .go { color: var(--muted); }
.pick:hover .go { color: var(--brand-text); }
.pick .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.ov-top { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; margin-bottom: 16px; }
.highlight { background: var(--night); color: var(--night-text); border-color: var(--night); display: flex; flex-direction: column; gap: 4px; }
.highlight .big { font: 800 56px/1 var(--font-display); letter-spacing: -2px; color: var(--lime); font-variant-numeric: tabular-nums; margin-top: 6px; }
.highlight .sub { color: var(--night-muted); font-size: 14px; margin-bottom: 14px; }
.minibars { width: 100%; height: 70px; margin-top: auto; }
.minibars .mb { fill: var(--night-muted); opacity: .45; }
.minibars .mb-last { fill: var(--lime); }
.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ov-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 16px; margin-bottom: 40px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini-cal .wd { font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.mini-cal .d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none; }
.mini-cal .d:hover { background: var(--ground); }
.mini-cal .d.out { color: var(--line-strong); }
.mini-cal .d.today { background: var(--brand); color: #fff; font-weight: 700; }
.mini-cal .dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; gap: 2px; justify-content: center; }
.mini-cal .dots b { width: 5px; height: 5px; border-radius: 50%; }
.s-scheduled { --st: var(--brand); } .s-publishing { --st: var(--brand); } .s-published { --st: var(--ok); } .s-failed, .s-partial { --st: var(--error); } .s-network { --st: var(--muted); }
.dots b, i.lg { background: var(--st); }
.mini-cal .d.today .dots b { background: #fff; }
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
a.icon-btn { display: inline-grid; place-items: center; text-decoration: none; }
.flow div { background: var(--ground); border-radius: 12px; padding: 14px 12px; }
.flow b { display: block; font: 800 30px/1 var(--font-display); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.flow span { font-size: 12px; color: var(--muted); }
.flow .bad b { color: var(--error); }
.hbars { display: grid; gap: 9px; }
.hb { display: grid; grid-template-columns: 84px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.hb .l { color: var(--ink-2); }
.hb .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hb .track { height: 10px; background: var(--ground); border-radius: 6px; overflow: hidden; }
.hb .track > i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hb .track > i.stack-bar { display: flex; background: none; }
.g-f { background: var(--brand); } .g-m { background: #8FA8FF; }
.gender { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin-top: 12px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mini-list li a, .mini-list li > span { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.mini-list li a:hover { background: var(--ground); }
.mini-list time { font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.top-card, .strip-card { padding: 0; overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; }
.top-card img, .top-card .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--ground); }
.ph { display: grid; place-items: center; color: var(--muted); font: 800 24px var(--font-display); background: var(--ground); }
.top-card .body, .strip-card .body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.top-card .rank { font: 800 22px/1 var(--font-display); color: var(--brand-text); }
.top-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--body); font-size: 14px; }
.nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.nums b { color: var(--ink); font-size: 15px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
i.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.cal-wd { padding: 10px; font: 600 12px var(--font-sans); color: var(--muted); text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--line); }
.cal-wd span { display: none; }
.cal-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--ground); }
.cal-day.out .cal-num span { color: var(--line-strong); }
.cal-num { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; padding: 2px 4px; }
.cal-day.today .cal-num span { background: var(--brand); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; }
.cal-num .add { opacity: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--brand-text); text-decoration: none; font-weight: 700; }
.cal-day:hover .add, .cal-num .add:focus { opacity: 1; background: var(--brand-soft); }
.cal-special { font-size: 11px; font-weight: 600; color: var(--warning); background: var(--warning-bg); border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item { display: flex; gap: 5px; align-items: center; font-size: 12px; padding: 3px 6px; border-radius: 6px; background: var(--ground); color: var(--ink-2); text-decoration: none !important; border-left: 3px solid var(--st); min-width: 0; }
.cal-item:hover { background: var(--brand-soft); }
.cal-item time { font: 500 11px var(--font-mono); color: var(--muted); }
.cal-more { font-size: 11px; color: var(--muted); padding: 0 6px; }
.cal-side { position: sticky; top: 24px; }
.dates-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.dates-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.dates-list .dd { font: 800 16px/1 var(--font-display); color: var(--brand-text); width: 26px; }

.post-detail { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.pd-media { display: grid; }
.pd-media.multi { grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; }
.pd-media img, .pd-media video { width: 100%; max-height: 520px; object-fit: cover; display: block; background: var(--ground); scroll-snap-align: start; }
.pd-target { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.pd-target:first-of-type { border-top: 0; padding-top: 0; }
.pd-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.pd-metrics div { background: var(--ground); border-radius: 10px; padding: 10px; }
.pd-metrics b { display: block; font: 800 20px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.pd-metrics span { font-size: 12px; color: var(--muted); }

.feed-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(260px, 1fr); gap: 20px; align-items: start; }
.phone { padding: 20px 16px; }
.ig-head { display: flex; align-items: center; gap: 24px; padding: 0 6px; }
.ig-head .pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ig-stats { display: flex; gap: 28px; }
.ig-stats b { display: block; font: 800 20px var(--font-display); }
.ig-stats span { font-size: 13px; color: var(--muted); }
.ig-name { margin: 12px 6px 4px; }
.ig-bio { margin: 0 6px 14px; font-size: 14px; color: var(--body); white-space: pre-wrap; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 12px; }
.tile { position: relative; aspect-ratio: 4 / 5; background: var(--ground); overflow: hidden; display: block; }
.tile img, .tile video, .tile .ph { width: 100%; height: 100%; object-fit: cover; display: grid; }
.tile.planned { outline: 3px solid var(--brand); outline-offset: -3px; }
.tile .tag { position: absolute; left: 6px; bottom: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.tile .kind { position: absolute; right: 6px; top: 6px; background: rgba(14,19,32,.75); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.cap-inline { text-transform: none; }

.period-bar { margin-bottom: 20px; }
.period-bar input[type=date] { width: auto; padding: 6px 10px; font-size: 14px; }
.period-bar select { padding: 7px 30px 7px 10px; font-size: 14px; }
.chart .line-compare { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.chart-legend { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.chart-legend span { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--brand); margin-left: 6px; }
.chart-legend .lg-cmp { border-top: 2px dashed var(--muted); }
.chart .tip .tip-cmp { display: block; color: var(--night-muted); font-size: 12px; }
.post-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.post-strip .strip-card img, .post-strip .strip-card .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.post-strip.stories { grid-auto-columns: 150px; }
.post-strip.stories .strip-card img, .post-strip.stories .strip-card .ph { aspect-ratio: 9 / 16; }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.hours span { flex: 1; background: var(--brand); opacity: .3; border-radius: 3px 3px 0 0; }
.hours span.best { opacity: 1; }
.hours-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }

.badge-n.soft { background: rgba(255,255,255,.16); color: var(--side-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-idea { --st: var(--warning); }
.s-shoot { --st: #7C3AED; }
.cal-item.s-shoot { background: rgba(124,58,237,.10); }
.cal-item.s-idea { background: transparent; border: 1px dashed var(--line-strong); border-left: 3px solid var(--st); }
.appr-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; background: var(--trial); }
.appr-dot.changes { background: var(--warning); }
.legend .appr-dot { margin: 0; }

.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; }
.board-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 12px; display: grid; gap: 10px; min-width: 220px; }
.board-col header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; border-bottom: 3px solid var(--col, var(--line-strong)); }
.board-col .count { font: 700 12px var(--font-sans); color: var(--muted); background: var(--ground); border-radius: 999px; padding: 2px 9px; }
.col-ideia { --col: var(--line-strong); } .col-aprovada { --col: var(--brand); } .col-producao { --col: var(--warning); } .col-agendada { --col: var(--ok); }
.board-empty { padding: 10px 4px; }
.idea { background: var(--ground); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.idea:target { outline: 3px solid var(--focus); }
.idea-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.idea-top .selo { padding: 1px 8px; font-size: 12px; }
.idea-top time { margin-left: auto; font-weight: 600; }
.idea h4 { margin: 0; font: 700 15px/1.3 var(--font-display); color: var(--ink); }
.idea-notes { font-size: 13px; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.idea-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.idea-actions select { padding: 4px 26px 4px 8px; font-size: 13px; }
.idea-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.idea-fields select { width: 100%; }
.idea-form { max-width: 760px; }
.discarded summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 8px; }

.post-detail .appr { grid-template-columns: 1fr; }
.post-detail .appr-media { display: none; }
.appr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.appr-side { position: sticky; top: 24px; }
.link-item { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.codebox-sm { padding: 10px 84px 10px 10px; font-size: 12px; }
.appr { display: grid; grid-template-columns: minmax(180px, 36%) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.appr-media { position: relative; background: var(--ground); display: grid; align-content: start; }

.appr-media .ph { aspect-ratio: 4 / 5; }
.appr-body { padding: 20px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.appr-when { font-weight: 600; color: var(--ink-2); }
.appr-when::first-letter { text-transform: uppercase; }
.appr-text { white-space: pre-wrap; word-break: break-word; color: var(--body); font-size: 15px; background: var(--ground); border-radius: 12px; padding: 14px; max-height: 320px; overflow: auto; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.thread li { border-left: 3px solid var(--line-strong); padding: 6px 0 6px 12px; font-size: 14px; }
.thread li.client { border-left-color: var(--brand); }
.thread li.approved { border-left-color: var(--ok); }
.thread li.changes { border-left-color: var(--warning); }
.thread .who-line { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; color: var(--muted); }
.thread .who-line strong { color: var(--ink); }
.thread time { margin-left: auto; font-size: 12px; }
.thread p { white-space: pre-wrap; color: var(--body); margin-top: 2px; }
.appr-form { gap: 10px; }
.client-page { max-width: 980px; margin: 0 auto; padding: 32px 20px 48px; }
.client-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.client-head .avatar-lg { width: 64px; height: 64px; font-size: 26px; margin-top: 30px; }
.approval-check { padding: 12px 14px; background: var(--brand-soft); border-radius: 10px; }

.board-3 { grid-template-columns: repeat(3, minmax(200px, 1fr)); }
.board-3 .board-col { min-width: 200px; }
.col-task-todo { --col: var(--line-strong); } .col-task-doing { --col: var(--brand); } .col-task-done { --col: var(--ok); }
.task { display: flex; gap: 10px; align-items: flex-start; background: var(--ground); border-radius: 12px; padding: 12px; border-left: 3px solid transparent; }
.task.pr-high { border-left-color: var(--error); }
.task:target { outline: 3px solid var(--focus); }
.task.is-done h4 { text-decoration: line-through; color: var(--muted); }
.task-check { margin: 0; }
.tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; margin-top: 1px; }
.tick:hover { border-color: var(--ok); }
.is-done .tick { background: var(--ok); border-color: var(--ok); }
.tick svg.icon { width: 14px; height: 14px; stroke-width: 3; }
.task-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.task-body h4 { margin: 0; font: 600 15px/1.35 var(--font-sans); color: var(--ink); }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.task-meta .selo { padding: 0 8px; font-size: 11px; }
.task-meta .due { font-weight: 600; color: var(--ink-2); }
.is-late .due { color: var(--error); }
.who-chip { display: inline-flex; align-items: center; gap: 5px; }
.avatar-xs { width: 20px; height: 20px; font-size: 10px; background: var(--brand); }
.task-notes { font-size: 13px; color: var(--body); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.task-actions { display: flex; gap: 10px; align-items: center; }
.task-actions select { padding: 3px 26px 3px 8px; font-size: 12px; }
.task-list { display: grid; gap: 8px; }
.task-list .task { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.task-list .task.pr-high { border-left: 3px solid var(--error); }
.g-overdue h2 { color: var(--error); }
.task-form { max-width: 820px; }
.task-form summary { cursor: pointer; list-style: none; }
.task-form summary::-webkit-details-marker { display: none; }
.task-form summary h2::after { content: " +"; color: var(--brand-text); }
.task-form[open] summary h2::after { content: ""; }
.task-form[open] summary { margin-bottom: 16px; }
.mini-list time.late { color: var(--error); }

.shoot-list { display: grid; gap: 12px; }
.shoot-card { display: flex; gap: 18px; align-items: center; color: var(--ink); text-decoration: none !important; padding: 16px 18px; }
.shoot-card:hover { box-shadow: var(--shadow-float); }
.shoot-card.st-cancelada { opacity: .6; }
.shoot-card h3 { margin: 6px 0 2px; }
.date-box { width: 64px; flex-shrink: 0; text-align: center; background: var(--ground); border-radius: 12px; padding: 8px 4px; display: grid; line-height: 1.1; }
.date-box b { font: 800 26px/1 var(--font-display); color: var(--brand-text); margin: 2px 0; }
.date-box span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.shoot-cover { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.shoot-progress { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.shoot-progress .bar { flex: 0 1 180px; height: 6px; border-radius: 4px; background: var(--ground); overflow: hidden; }
.shoot-progress .bar i { display: block; height: 100%; background: var(--ok); }
.shoot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.shot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.shot-list li { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.shot-list li:hover { background: var(--ground); }
.shot-list li.done .grow { text-decoration: line-through; color: var(--muted); }
.shot-list li.done .tick { background: var(--ok); border-color: var(--ok); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink-2); }
.pre { white-space: pre-wrap; font-size: 14px; color: var(--body); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lib-item { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--ground); border: 2px solid transparent; cursor: pointer; }
.lib-item.on { border-color: var(--brand); }
.lib-item img, .lib-item video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.lib-item input { position: absolute; top: 8px; left: 8px; z-index: 2; width: 20px; height: 20px; }
.lib-item .kind, .lib-item .used { position: absolute; top: 8px; right: 8px; background: rgba(14,19,32,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.lib-item .used { top: auto; bottom: 46px; right: 8px; background: var(--ok); }
.lib-item .meta { display: grid; padding: 6px 8px; font-size: 12px; color: var(--muted); background: var(--surface); }
.lib-item .meta .ellip { color: var(--ink-2); font-weight: 500; }
.pick-bar { position: sticky; bottom: 16px; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--night); color: var(--night-text); padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow-float); z-index: 5; }
.pick-bar [data-pick-count] { margin-right: auto; font-weight: 600; }
.lib-delete { margin-top: 16px; }
.lib-delete summary { cursor: pointer; }

.bench-top { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; margin-bottom: 20px; align-items: stretch; }
.bench-add { display: grid; gap: 8px; align-content: start; }
.bench-findings ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bench-findings li { padding-left: 16px; position: relative; color: var(--night-text); font-size: 14px; }
.bench-findings li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--night-muted); }
.bench-findings li.f-good::before { background: var(--lime); }
.bench-findings li.f-bad::before { background: #FF9A90; }
.bench-table td, .bench-table th { padding: 10px 10px; }
.bench-table .mixbar { width: 80px; }
.bench-table tr.is-brand td { background: var(--brand-soft); }
.bench-table tr.is-avg td { background: var(--ground); border-top: 2px solid var(--line-strong); }
.pic-round { width: 40px !important; height: 40px !important; border-radius: 50% !important; }
.bad-text { color: var(--error); }
.mixbar { display: flex; width: 110px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--ground); }
.mixbar i { display: block; height: 100%; }
.mx-image { background: #8FA8FF; } .mx-carousel { background: var(--brand); } .mx-reel { background: var(--night); }
@media (prefers-color-scheme: dark) { .mx-reel { background: var(--lime); } }
.lg-inline { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-left: 6px; }
.bench-bars .hb { grid-template-columns: 130px 1fr 60px; }
.bench-bars .hb .track > i { background: #8FA8FF; }
.bench-bars .hb.is-brand .track > i { background: var(--brand); }
.bench-bars .hb.is-brand .l { font-weight: 700; color: var(--ink); }
.bench-cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.choice-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice .ratio { display: block; background: var(--brand-soft); border: 2px solid var(--brand); border-radius: 6px; margin-bottom: 8px; height: 44px; }
.ratio.r-square { width: 44px; } .ratio.r-portrait { width: 35px; } .ratio.r-story { width: 25px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.tpl { display: grid !important; gap: 4px !important; cursor: pointer; font-weight: 500 !important; }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl small { color: var(--muted); font-size: 12px; font-weight: 400; }
.tpl-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); background: var(--c0); }
.tpl:has(input:checked) .tpl-thumb { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.tpl-thumb i, .tpl-thumb b, .tpl-thumb em { position: absolute; display: block; border-radius: 4px; }
.tpl-thumb i { left: 12%; top: 34%; width: 70%; height: 12%; background: rgba(255,255,255,.9); }
.tpl-thumb b { left: 12%; top: 52%; width: 50%; height: 6%; background: rgba(255,255,255,.6); }
.tpl-thumb em { left: 12%; top: 10%; width: 14%; height: 3%; background: var(--c3); }
.t-foto-faixa { background: #8b95a5; }
.t-foto-faixa i { top: 70%; height: 10%; } .t-foto-faixa b { top: 84%; } .t-foto-faixa::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: var(--c0); z-index: 0; }
.t-foto-faixa i, .t-foto-faixa b { z-index: 1; }
.t-citacao { background: var(--c2); } .t-citacao i { background: var(--c1); opacity: .8; } .t-citacao b { background: var(--c0); } .t-citacao em { width: 18%; height: 14%; top: 8%; background: var(--c0); border-radius: 50% 50% 0 50%; }
.t-promocao { background: var(--c1); } .t-promocao i { height: 22%; top: 28%; } .t-promocao em { background: var(--c3); left: 12%; top: 78%; width: 44%; height: 9%; border-radius: 999px; }
.t-dicas { background: var(--c2); } .t-dicas i { background: var(--c1); opacity: .8; } .t-dicas em { width: 22%; height: 16%; top: 8%; background: var(--c0); }
.t-anuncio { background: var(--c0); } .t-anuncio i { left: 15%; width: 70%; } .t-anuncio b { left: 25%; } .t-anuncio em { left: 28%; width: 44%; top: 80%; height: 9%; border-radius: 999px; }
.t-branco { background: var(--c2); } .t-branco i, .t-branco b, .t-branco em { display: none; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.design-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.design-thumb { position: relative; display: grid; place-items: center; background: var(--ground); color: var(--muted); font-size: 13px; text-decoration: none !important; aspect-ratio: 1; overflow: hidden; }
.design-thumb img { width: 100%; height: 100%; object-fit: contain; }
.design-thumb .count { position: absolute; right: 8px; top: 8px; background: var(--night); color: var(--night-text); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.design-card .body { padding: 12px 14px 14px; display: grid; gap: 6px; }

/* Arquivos da marca e geração com IA */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.asset-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.asset-thumb { display: grid; place-items: center; height: 150px; padding: 16px; background: repeating-conic-gradient(var(--ground) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.asset-thumb img { max-width: 100%; max-height: 118px; width: auto; height: auto; object-fit: contain; }
.asset-thumb.ref { display: block; height: auto; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--ground); }
.asset-thumb.ref img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: top; }
.asset-card .body { padding: 12px 14px 14px; display: grid; gap: 6px; min-width: 0; }
.logo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.logo-opt { position: relative; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); cursor: pointer; font-size: 13px; font-weight: 500; min-width: 0; }
.logo-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.logo-opt input { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; }
.logo-opt .lp-img { display: grid; place-items: center; height: 70px; background: #fff; border-radius: 8px; padding: 6px; }
.logo-opt .lp-img img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.ref-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ref-opt { position: relative; display: grid; gap: 6px; padding: 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); cursor: pointer; font-size: 12px; font-weight: 500; min-width: 0; }
.ref-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ref-opt input { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; z-index: 1; }
.ref-opt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; background: var(--ground); }
.choice label.disabled { opacity: .55; cursor: not-allowed; }
.lib-item:has(input:checked) { border-color: var(--brand); }
.ai-gen { display: grid; gap: 10px; }
.ai-gen.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.ai-brief { color: var(--ink-2); white-space: pre-line; }
.ai-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ai-variant { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: var(--radius-card); background: var(--ground); }
.ai-variant .row { margin-top: 6px; }
.ai-vlabel { font-weight: 600; }
.ai-feedback { font-size: 13px; color: var(--ink-2); background: var(--surface); border-left: 3px solid var(--brand); padding: 6px 10px; border-radius: 6px; white-space: pre-line; }
.ai-revise { margin-top: 6px; }
.ai-revise > summary { list-style: none; display: inline-flex; cursor: pointer; }
.ai-revise > summary::-webkit-details-marker { display: none; }
.ai-revise[open] > summary { margin-bottom: 8px; }
.ai-revise textarea { width: 100%; }
.ai-versions { border-top: 1px solid var(--line); padding-top: 12px; }
.ai-versions h4 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.ai-art { display: block; border-radius: 10px; overflow: hidden; background: var(--surface); }
.ai-art img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.ai-art.r-portrait img { aspect-ratio: 4 / 5; } .ai-art.r-story img { aspect-ratio: 9 / 16; }
.kit-colors { display: flex; flex-wrap: wrap; gap: 14px; }
.kit-color { display: grid; gap: 4px; justify-items: center; font-size: 12px; color: var(--muted); }
.kit-color input[type=color] { width: 64px; height: 64px; border-radius: 14px; padding: 4px; }
.kit-color.add { opacity: .8; }
.swatch { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); }
.kit-logo { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo-box { width: 120px; height: 80px; border-radius: 12px; background: repeating-conic-gradient(var(--ground) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; border: 1px solid var(--line); }
.logo-box img { max-width: 100px; max-height: 64px; }
.kit-preview { background: var(--c0); border-radius: 14px; padding: 22px; display: grid; gap: 6px; }
.kit-preview span { font-size: 34px; font-weight: 700; color: #fff; }
.kit-preview small { color: rgba(255,255,255,.85); font-size: 16px; }

.main:has(.studio) { max-width: none; }
.studio { display: grid; gap: 14px; }
.studio-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 10px 14px; position: sticky; top: 0; z-index: 10; }
.studio-name { width: auto; min-width: 220px; font-weight: 700; border-color: transparent; background: var(--ground); }
.studio-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.studio-stage { display: grid; gap: 12px; justify-items: center; }
.stage-wrap { width: 100%; display: grid; place-items: center; background: repeating-conic-gradient(var(--ground) 0 25%, var(--surface) 0 50%) 0 0 / 24px 24px; border-radius: var(--radius-card); padding: 18px; border: 1px solid var(--line); }
#st-canvas { box-shadow: var(--shadow-float); touch-action: none; cursor: default; background: #fff; }
.pages { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.page-thumb { position: relative; border: 2px solid var(--line); border-radius: 8px; padding: 0; background: none; cursor: pointer; overflow: hidden; line-height: 0; }
.page-thumb.on { border-color: var(--brand); }
.page-thumb canvas { display: block; max-height: 90px; width: auto; }
.page-thumb span { position: absolute; left: 4px; bottom: 4px; background: var(--night); color: #fff; font: 600 10px/1 var(--font-sans); padding: 3px 5px; border-radius: 5px; }
.page-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.studio-side { position: sticky; top: 70px; padding: 14px; display: grid; gap: 12px; max-height: calc(100vh - 90px); overflow-y: auto; }
.st-tabs { display: flex; }
.st-tabs a { flex: 1; text-align: center; padding: 7px 4px; font-size: 13px; }
.pf { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pf input, .pf select, .pf textarea { font-size: 14px; padding: 7px 9px; width: 100%; }
.pf input[type=range] { padding: 0; }
.pf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; align-items: end; }
.pf-check { font-size: 13px; margin-bottom: 10px; }
.pf-colors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-colors input[type=color] { width: 36px; height: 30px; padding: 2px; }
.sw { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.sw[aria-pressed=true] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--focus); }
.pf-img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.img-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.img-pick button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--ground); line-height: 0; }
.img-pick button:hover { border-color: var(--brand); }
.img-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.dz-sm { padding: 14px; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.layer-list li { display: flex; gap: 4px; align-items: center; border-radius: 8px; padding: 2px; }
.layer-list li.on { background: var(--brand-soft); }
.layer-list .ln { flex: 1; text-align: left; background: none; border: 0; padding: 6px 8px; cursor: pointer; font: 500 13px var(--font-sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ads-tabs { display: inline-flex; flex-wrap: wrap; }
.ads-attn { border-left: 4px solid var(--warning); }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cap-card { display: grid; gap: 6px; }
.cap-nums b { font: 800 26px/1.1 var(--font-display); letter-spacing: -.5px; margin-right: 6px; }
.cap-nums span { color: var(--muted); font-size: 13px; }
.cap-bar { height: 8px; border-radius: 4px; background: var(--ground); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--brand); }
.cap-bar.hot i { background: var(--error); }
.boost-form { display: grid; gap: 14px; max-width: 980px; }
.boost-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.boost-item { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; cursor: pointer; font-weight: 400 !important; }
.boost-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.boost-item input { margin-top: 4px; }
.boost-item img, .boost-item .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; font-size: 13px; }
.b-body { display: grid; gap: 3px; min-width: 0; font-size: 13px; }
.b-cap { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.boost-total { margin-top: 10px; font-weight: 600; color: var(--ink); }
.rule-card.off { opacity: .65; }

.mc { position: relative; background: var(--ground); overflow: hidden; }
.mc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.mc-track::-webkit-scrollbar { display: none; }
.mc-track:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.mc-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; background: var(--ground); }
.mc-slide img { width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.mc-slide video { width: 100%; max-height: 75vh; display: block; background: #000; }
.mc-slide { align-self: center; }
.mc .mc-track { align-items: center; }
.mc-slide .ph { width: 100%; aspect-ratio: 4 / 5; }
.mc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #121722; font: 700 24px/1 var(--font-sans); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; padding: 0 0 3px; transition: opacity .15s; }
.mc-nav:hover { background: #fff; }
.mc-nav:focus-visible { outline: 3px solid var(--focus); }
.mc-nav[disabled] { opacity: 0; pointer-events: none; }
.mc-prev { left: 10px; } .mc-next { right: 10px; }
.mc-count { position: absolute; top: 10px; right: 10px; background: rgba(14,19,32,.78); color: #fff; font: 600 12px/1 var(--font-sans); padding: 5px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.mc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.mc-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; transition: width .15s; }
.mc-dot.on { background: #fff; width: 20px; border-radius: 4px; }
.mc-hint { font-size: 12px; color: var(--muted); padding: 8px 12px 0; text-align: center; }
.appr-media { background: var(--ground); display: block; align-self: start; }
.appr-media .mc-hint { padding-bottom: 8px; }
.post-detail .preview .mc-slide img, .post-detail .preview .mc-slide video { aspect-ratio: auto; max-height: 560px; object-fit: contain; }
.selo-net { background: var(--neutral-bg); color: var(--ink-2); }
.post-network { border-style: dashed; }
.net-metrics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.net-metrics b { color: var(--ink); }

@media (max-width: 1240px) {
  .appr-layout, .shoot-layout, .studio-main { grid-template-columns: 1fr; }
  .studio-side { position: static; max-height: none; }
  .appr-side { position: static; order: -1; }
}
@media (max-width: 1100px) {
  .ov-grid { grid-template-columns: 1fr 1fr; }
  .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-side { position: static; }
}
@media (max-width: 900px) {
  h1.display { font-size: 38px; letter-spacing: -1.2px; }
  .ov-top, .ov-grid, .post-detail, .feed-layout, .top3, .appr-layout, .appr, .shoot-layout, .bench-top { grid-template-columns: 1fr; }
  .shoot-cover { display: none; }
  .appr-side { position: static; }
  .client-head { flex-direction: column; gap: 8px; }
  .client-head .avatar-lg { margin-top: 0; }
  .board { grid-template-columns: repeat(4, 250px); }
  .board-3 { grid-template-columns: repeat(3, 260px); }
  .sidebar { gap: 8px; }
  .sidebar > * { order: 3; }
  .sidebar .brandmark { order: 0; }
  .sidebar .side-bottom { order: 1; }
  .sidebar .side-bottom .btn-lime { display: none; }
  .brand-switch { order: 2; flex-basis: 100%; }
  .sidebar .nav-label { display: none; }
  .sidebar .nav { display: flex; flex-basis: 100%; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .sidebar .nav a { white-space: nowrap; padding: 7px 10px; font-size: 14px; }
  .cal { grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 11px; }
  .cal-day { min-height: 64px; padding: 3px; }
  .cal-item span.ellip { display: none; }
  .cal-special { display: none; }
}

/* ---------- Login ---------- */
body.bare { background: var(--ground); }
.auth { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 24px; min-height: 100vh; padding: 24px; align-items: stretch; }
.auth-hero { background: var(--night); color: var(--night-text); border-radius: var(--radius-card-lg); padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.auth-hero .brandmark { color: var(--night-text); padding: 0; margin-bottom: 24px; }
.auth-hero .eyebrow { color: var(--lime); }
.auth-hero h1 { font-size: 52px; line-height: 1.04; font-weight: 800; letter-spacing: -1.6px; color: var(--night-text); }
.auth-hero h1 span { color: var(--lime); }
.auth-hero .lead { font-size: 18px; color: var(--night-muted); max-width: 46ch; }
.auth-hero .check li { color: var(--night-text); }
.auth-side { display: grid; align-content: center; justify-items: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 22px; }

/* ---------- Pré-visualização do post ---------- */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.preview { position: sticky; top: 24px; padding: 0; overflow: hidden; }
.preview-head { display: flex; gap: 10px; align-items: center; padding: 14px; }
.preview-head .avatar { width: 32px; height: 32px; font-size: 13px; }
.preview img, .preview video { width: 100%; max-height: 420px; object-fit: cover; display: block; background: var(--ground); }
.preview-media { position: relative; }
.preview-media .count { position: absolute; top: 10px; right: 10px; background: var(--night); color: var(--night-text); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 12px; font-weight: 600; }
.preview-text { padding: 12px 14px; white-space: pre-wrap; word-break: break-word; font-size: 14px; color: var(--body); }
.preview > .caption { display: block; padding: 0 14px 14px; }
.schedule { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.schedule input[type=datetime-local] { width: auto; }
.media-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.media-card { width: 112px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: grid; font-size: 12px; font-weight: 500 !important; }
.media-card img, .media-card video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--ground); }
.media-card .bar { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px 6px; color: var(--muted); }
.media-card .name { padding: 4px 6px 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); border-radius: 7px; width: 26px; height: 26px; cursor: pointer; font: 600 13px/1 var(--font-sans); }
.icon-btn:hover { background: var(--ground); }
.icon-btn[disabled] { opacity: .35; cursor: default; }
.current-media { display: flex; gap: 12px; align-items: center; }
.current-media img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.danger-zone { text-align: right; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

/* ---------- Relatório ---------- */
.nowrap { white-space: nowrap; }
.report-posts tfoot td { border-top: 2px solid var(--line-strong); background: var(--ground); font-variant-numeric: tabular-nums; }
.report-posts .cell-post { min-width: 220px; }
.report-posts .cell-post p { -webkit-line-clamp: 2; font-size: 12px; }
.report { max-width: 900px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.report-head h1 { font-size: 34px; letter-spacing: -1px; }
.report .block { margin-bottom: 28px; }
.report .block, .report .card, .report tr { break-inside: avoid; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { grid-auto-flow: column; overflow-x: auto; gap: 4px; }
  .nav-group-brands, .side-bottom .who { display: none; }
  .side-bottom { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; }
  .main { padding: 20px 16px 48px; }
  .auth { grid-template-columns: 1fr; padding: 12px; }
  .auth-hero { padding: 28px; } .auth-hero h1 { font-size: 36px; }
  .composer, .grid-2 { grid-template-columns: 1fr; }
  .choice-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-3 { grid-template-columns: 1fr; }
  .kpis.k6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview { position: static; }
  .post { flex-wrap: wrap; }
  .post-actions { flex-direction: row; width: 100%; justify-content: flex-end; }
  .thumb { width: 60px; height: 60px; }
  h1 { font-size: 26px; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #121722; font-size: 12px; }
  .sidebar, .no-print, .foot-app { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #CDD2DA; }
  .chart .tip, .chart .xhair, .chart .xdot, .chart-table { display: none !important; }
  .kpi .value { font-size: 26px; }
  a { color: inherit; }
  /* Lista de publicações: cabe em A4 em pé, cabeçalho repete a cada página e linhas não se partem. */
  table.dense.report-posts { font-size: 9px; }
  table.dense.report-posts th, table.dense.report-posts td { padding: 4px 3px; font-size: 9px; }
  table.report-posts .net { min-width: 18px; height: 16px; font-size: 8px; padding: 0 3px; }
  table.report-posts .caption { font-size: 9px; }
  .report-posts thead { display: table-header-group; }
  .report-posts tfoot { display: table-row-group; }
  .report-posts tr { break-inside: avoid; page-break-inside: avoid; }
  .report-posts .cell-post { min-width: 0; gap: 6px; }
  .report-posts .cell-post .thumb { width: 24px; height: 24px; border-radius: 4px; }
  .report-posts .cell-post .thumb-text { font-size: 9px; }
  .report-posts .cell-post p { font-size: 9px; }
  .report-posts .cell-post a { display: none; }
  .report .report-list { break-inside: auto; }
  .report .table-wrap { overflow: visible; }
}

/* Equipe: marcas que cada pessoa vê */
.brand-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; }
.brand-checks .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 6px 0 2px; }
.member-brands { max-width: 380px; }
.member-brands summary { cursor: pointer; }

/* Aviso de assinatura (teste, atraso, bloqueio) */
.billing-bar { margin: -8px 0 18px; padding: 10px 16px; border-radius: var(--radius-card); font-size: 14px; background: var(--brand-soft); color: var(--ink); }
.billing-bar.overdue { background: var(--warning-bg); color: var(--warning); }
.billing-bar.locked { background: var(--error-bg); color: var(--error); }
.billing-bar a { font-weight: 600; margin-left: 6px; }
.display-sm { font: 800 34px/1.1 var(--font-display, 'Bricolage Grotesque'); margin: 6px 0 0; }
.display-sm small { font: 500 15px var(--font-body, Inter); }
.card .mini-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 20px 0 8px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--brand-soft); }
.pay-box.late { background: var(--warning-bg); }
.pay-box div { display: grid; gap: 2px; }
.pay-box span { font-size: 14px; color: var(--ink-2); }

/* Equipe: permissões */
.perm-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.perm-checks label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; font-weight: 500; }
.perm-checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.perm-checks input { margin-top: 3px; }
.perm-checks span { display: grid; gap: 2px; }
.perm-checks small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; margin: 0 4px 4px 0; color: var(--ink-2); }
.chip:hover { border-color: var(--brand); color: var(--brand-text); }
.member-perms { max-width: 420px; }
.member-perms summary { cursor: pointer; }
@media (max-width: 700px) { .perm-checks { grid-template-columns: 1fr; } }

/* Tarefas por setor */
.stage-board { display: grid; grid-auto-flow: column; grid-auto-columns: 272px; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.stage-col { background: var(--ground); border-radius: var(--radius-card); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; scroll-snap-align: start; border-top: 4px solid var(--line-strong); }
.stage-col header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; }
.stage-col h3 { font-size: 14px; }
.stage-col .count { font: 600 12px var(--font-mono, monospace); color: var(--muted); }
.stage-col.stage-start { border-top-color: var(--brand); }
.stage-col.stage-approval { border-top-color: var(--warning); }
.stage-col.stage-done { border-top-color: var(--ok); }
.task-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.task-people { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.who-chip.free { color: var(--warning); font-weight: 600; }
.task .task-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.task .task-actions select { max-width: 150px; font-size: 13px; padding: 4px 6px; }
.selo.stage-start { background: var(--brand-soft); color: var(--brand-text); }
.selo.stage-approval { background: var(--warning-bg); color: var(--warning); }
.selo.stage-done { background: var(--ok-bg, #e5f5ec); color: var(--ok); }
.stage-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.stage-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.stage-summary span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.stage-summary b { font-weight: 700; margin-right: 4px; }

/* Quem fez cada parte da publicação */
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.credit-list li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.credit-list .part { font-weight: 600; display: grid; }
.credit-list .part small { font-weight: 400; color: var(--muted); font-size: 12px; }
.credit-list .who { display: inline-flex; gap: 6px; align-items: center; }
.credit-list .avatar { color: #fff; background: var(--brand); }
.credit-list li > :last-child:not(time) { grid-column: 2 / 4; }
.credit-list time { font: 500 12px var(--font-mono, monospace); color: var(--muted); }
.credit-list li.pending .part { color: var(--ink-2); }

/* Admin SeuSocial */
.admin-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-kpis .card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.admin-kpis span { font-size: 13px; color: var(--muted); }
.admin-kpis b { font: 800 28px/1.1 var(--font-display, 'Bricolage Grotesque'); }
.admin-kpis small { font-size: 12px; color: var(--muted); }
.admin-actions form.form { margin-bottom: 12px; }
.admin-actions .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-weight: 400; }
.admin-events li { align-items: flex-start; }
.admin-events span { display: grid; gap: 2px; }
@media (max-width: 1000px) { .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
