/* Editor de Relatório — estilos específicos (usa as variáveis de styles.css). */

.rb-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Builder ---------- */
.rb-kind {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px;
  background: #15171c; color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.rb-kind b { font-weight: 800; }
.rp-kind {
  display: inline-block; margin-top: 8px; padding: 3px 12px;
  border: 2px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 800;
}
.rb-meta {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
/* painel de geração: Curado × Automático */
.rb-gen { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; margin-bottom: 16px; }
.rb-gen-group { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.rb-gen-h { font-size: 13.5px; font-weight: 800; color: #15171c; margin-bottom: 12px; }
.rb-gen-h small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.rb-gen-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rb-gen-row:last-child { margin-bottom: 0; }
.rb-gen-lbl { font-size: 13px; font-weight: 700; color: #3a3f49; flex: 1; min-width: 0; }
.rb-gen-sel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 9px; font-size: 12.5px; font-family: inherit; color: var(--text); cursor: pointer; max-width: 190px; }
.rb-gen-btn { background: #15171c; color: #fff; border: none; border-radius: 8px; padding: 7px 15px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
.rb-gen-btn:hover { background: #000; }
.rb-gen-btn.primary { background: var(--lime); color: #15171c; }
.rb-gen-btn.primary:hover { background: var(--lime-strong); }
.rb-gen-btn:disabled { opacity: .4; cursor: not-allowed; }
.rb-gen-hint { font-size: 12px; color: var(--muted); }
.rb-gen-hint a { color: var(--accent-2); font-weight: 700; }

/* Escopo do Curado (território/tópico) */
.rb-scope-toggle {
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--ink);
}
.rb-scope-toggle:hover { border-color: var(--ink); }
.rb-scope {
  margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); max-height: 260px; overflow-y: auto;
  color: var(--ink); /* o painel .rb-gen é escuro c/ texto verde; aqui o fundo é claro, então texto escuro */
}
.rb-scope-acts { display: flex; gap: 12px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rb-scope-link { font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; background: none; border: none; color: var(--accent-2); padding: 0; }
.rb-scope-terr, .rb-scope-topic { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px 0; font-size: 13px; }
.rb-scope-terr { font-weight: 700; margin-top: 4px; }
.rb-scope-topic { padding-left: 22px; color: #4a4f5a; font-size: 12.5px; }
.rb-scope-n { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); background: #f0f1f3; border-radius: 999px; padding: 1px 8px; }
@media (max-width: 820px) { .rb-gen { grid-template-columns: 1fr; } }
.rb-meta label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: #4a4f5a; }
.rb-meta input, .rb-meta select {
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font-size: 13.5px; font-family: inherit;
}
.rb-meta input:focus, .rb-meta select:focus { outline: none; border-color: #15171c; }

.rb-source {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 14px; font-size: 13px; color: #3a3f49; margin-bottom: 18px;
}
.rb-source a { color: var(--accent-2); font-weight: 700; }

.rb-sec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
}
.rb-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rb-sec-type {
  background: #15171c; color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.rb-sec-title { flex: 1; background: none; border: none; border-bottom: 1px dashed var(--line-2);
  font-size: 16px; font-weight: 700; color: var(--text); padding: 4px 2px; font-family: inherit; }
.rb-sec-title:focus { outline: none; border-bottom-color: #15171c; }
.rb-x { background: none; border: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.rb-x:hover { color: var(--danger); }
.rb-intro {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 9px 11px; font-size: 13px; font-family: inherit; color: var(--text); margin-bottom: 12px; resize: vertical;
}
.rb-intro:focus { outline: none; border-color: #15171c; }

.rb-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.rb-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.rb-thumb { width: 46px; height: 60px; border-radius: 7px; overflow: hidden; background: #000; flex: none;
  display: grid; place-items: center; color: #6b7079; font-size: 18px; }
.rb-thumb.sm { width: 34px; height: 44px; font-size: 14px; }
.rb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rb-item-body { flex: 1; min-width: 0; font-size: 13px; }
.rb-tag { font-size: 11px; background: var(--surface); border: 1px solid var(--line); color: #5a5f6a;
  padding: 1px 7px; border-radius: 6px; margin-left: 4px; }
.rb-cap { color: #3a3f49; margin: 4px 0; line-height: 1.4; }
.rb-note { background: var(--surface); border-left: 3px solid var(--lime); border-radius: 6px;
  padding: 6px 9px; font-size: 12.5px; color: #3a3f49; }
.rb-empty { color: var(--muted); font-style: italic; font-size: 13px; padding: 6px 2px; }

.rb-additem { background: none; border: 1px dashed var(--line-2); color: #4a4f5a; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.rb-additem:hover { border-color: #15171c; color: #15171c; }
.rb-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.rb-pick { display: flex; align-items: center; gap: 8px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 10px 6px 6px; cursor: pointer; }
.rb-pick:hover { border-color: var(--lime-strong); background: var(--surface-2); }
.rb-pick-t { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.rb-pick-t b { font-size: 12.5px; }
.rb-pick-t small { font-size: 11px; color: var(--muted); }

/* Picker: Assuntos gerados (reais) */
.rb-picktabs { flex-basis: 100%; display: flex; gap: 6px; margin-bottom: 6px; }
.rb-picktab { background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rb-picktab.on { background: var(--lime); border-color: var(--lime-strong); color: #15171c; }
.rb-picktab:disabled { opacity: .45; cursor: not-allowed; }
.rb-dbpick { flex-basis: 100%; width: 100%; }
.rb-picksearch { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 11px; font-size: 13px; font-family: inherit; color: var(--text); margin-bottom: 8px; }
.rb-dblist { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.rb-dbitem { display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; font-family: inherit; }
.rb-dbitem:hover { border-color: var(--lime-strong); background: var(--surface-2); }
.rb-dbitem b { font-size: 13px; color: var(--text); }
.rb-dbmeta { font-size: 11px; color: var(--muted); }
.rb-dbchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.rb-dbcat { font-size: 10.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--accent-2); border-radius: 20px; padding: 1px 8px; }
.rb-dbrel { font-size: 11px; color: #b8860b; }
.rb-dbn { font-size: 10.5px; color: var(--muted); margin-left: auto; }
.rb-dbmore { font-size: 11px; color: var(--muted); font-style: italic; padding: 4px 2px; text-align: center; }
/* modo-marca (brand_fit): nota + justificativa */
.rb-dbbrand { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: #4a4f5a; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; margin-bottom: 8px; }
.rb-dbbrand > span { flex: 1; min-width: 180px; }
.rb-dbseed { background: var(--lime); border: 1px solid var(--lime-strong); color: #15171c;
  border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rb-dbseed:hover { background: var(--lime-strong); }
.rb-dbitem.hasnota { flex-direction: row; align-items: stretch; gap: 10px; }
.rb-dbnota { flex: 0 0 auto; align-self: center; min-width: 38px; text-align: center; font-weight: 800;
  font-size: 18px; color: #15171c; background: var(--lime); border-radius: 9px; padding: 8px 8px; }
.rb-dbbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rb-dbmotivo { font-size: 11.5px; color: #4a4f5a; line-height: 1.4; background: var(--surface);
  border-left: 3px solid var(--lime-strong); border-radius: 4px; padding: 4px 8px; margin-top: 2px; }

.rb-addsec { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.rb-addsec > span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rb-comp { background: var(--lime); border: 1px solid var(--lime-strong); color: #15171c;
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rb-comp:hover { background: var(--lime-strong); }

/* ---------- Preview (layout editorial) ---------- */
#preview { display: flex; justify-content: center; }
.rp-page { width: 100%; max-width: 640px; background: var(--lime); border-radius: 16px;
  padding: 26px; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.rp-cover { border-bottom: 2px solid #15171c; padding-bottom: 14px; margin-bottom: 18px; }
.rp-logo { font-size: 28px; font-weight: 800; letter-spacing: -.5px; color: #15171c; }
.rp-logo span { background: #fff; border-radius: 50%; padding: 0 4px; }
.rp-logo b { display: block; font-size: 15px; margin-top: 2px; }
.rp-meta { font-size: 13px; font-weight: 700; color: #15171c; margin-top: 6px; }
.rp-sec { margin-bottom: 22px; }
.rp-sec h2 { font-size: 20px; margin: 0 0 4px; color: #15171c; }
.rp-intro { font-size: 13.5px; color: #2a2c30; margin: 0 0 12px; line-height: 1.5; }
.rp-item { display: flex; gap: 14px; background: rgba(255,255,255,.65); border-radius: 12px;
  padding: 12px; margin-bottom: 12px; }
.rp-thumb { width: 80px; aspect-ratio: 9/14; border-radius: 9px; overflow: hidden; background: #000;
  flex: none; display: grid; place-items: center; color: #fff; }
.rp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rp-item-body { flex: 1; min-width: 0; }
.rp-author { display: flex; align-items: center; gap: 7px; }
.rp-av { width: 24px; height: 24px; border-radius: 50%; background: #15171c; color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.rp-cap { font-size: 13.5px; color: #1c1f26; margin: 6px 0; line-height: 1.45; }
.rp-metrics { font-size: 12px; font-weight: 700; color: #3a3f49; }
.rp-howto { background: #15171c; color: #fff; border-radius: 8px; padding: 8px 11px; font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
.rp-howto b { color: var(--lime); }
.rp-ctx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.rp-ctx span { font-size: 11px; background: #15171c; color: #fff; padding: 2px 8px; border-radius: 6px; }

/* ---------- Geração (✨) ---------- */
.btn-gen { background: #15171c; color: #fff; border: 1px solid #15171c; border-radius: 9px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.btn-gen:hover { background: #000; }
.rb-gen { background: #15171c; color: var(--lime); border: none; border-radius: 8px;
  padding: 6px 11px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rb-gen:hover { background: #000; }
.rb-gen.sm { padding: 4px 8px; font-size: 13px; }

.rb-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }

/* ---------- Assunto (card) ---------- */
.rb-ass { border: 1px solid var(--line-2); border-radius: 11px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.rb-ass-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.rb-ass-n { background: #15171c; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.rb-ass-title { flex: 1; min-width: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 6px 9px; font-size: 14px; font-weight: 700; color: var(--text); font-family: inherit; }
.rb-ass-title:focus { outline: none; border-color: #15171c; }
.rb-cat { background: var(--surface); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px;
  font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; }
.rb-acion { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.rb-acion.on { background: rgba(46,204,113,.12); color: #1e9e57; border-color: rgba(46,204,113,.35); }
.rb-acion.off { background: rgba(232,72,77,.1); color: var(--danger); border-color: rgba(232,72,77,.3); }
.rb-field { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit; color: var(--text); margin-bottom: 8px; resize: vertical; }
.rb-field:focus { outline: none; border-color: #15171c; }
.rb-field.note { border-left: 3px solid var(--lime); }
.rb-ass-posts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rb-ppost { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 9px 3px 3px; font-size: 12px; }
.rb-ppost img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.rb-ppost-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.rb-ppost-x:hover { color: var(--danger); }
.rb-addpost { background: none; border: 1px dashed var(--line-2); color: #4a4f5a; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.rb-addpost:hover { border-color: #15171c; color: #15171c; }
.rb-ass-m { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* ---------- Preview: assunto ---------- */
.rp-ass { background: rgba(255,255,255,.7); border-radius: 12px; padding: 13px; margin-bottom: 12px; }
.rp-ass-h { font-size: 15px; color: #15171c; margin-bottom: 5px; }
.rp-tags { font-size: 12px; color: #2a2c30; margin-bottom: 6px; }
.rp-resumo { font-size: 13px; color: #1c1f26; margin-bottom: 6px; line-height: 1.45; }
.rp-cat { font-size: 12.5px; font-weight: 700; color: #15171c; margin-bottom: 6px; }
.rp-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.rp-th { width: 44px; aspect-ratio: 9/14; border-radius: 7px; overflow: hidden; background: #000; display: grid; place-items: center; color: #fff; }
.rp-th img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px){ .rb-meta { grid-template-columns: 1fr 1fr; } }

/* ---------- Legibilidade: tamanhos maiores no editor e no preview ---------- */
/* Editor / builder */
.rb-sec-title { font-size: 18px; }
.rb-sec-type, .rb-ass-n { font-size: 12.5px; }
.rb-ass { padding: 15px; }
.rb-ass-title { font-size: 15.5px; padding: 8px 11px; }
.rb-cat, .rb-acion { font-size: 13px; padding: 7px 11px; }
.rb-field { font-size: 15px; padding: 10px 12px; }
.rb-intro { font-size: 14.5px; padding: 10px 12px; }
.rb-ass-m { font-size: 13px; }
.rb-ppost { font-size: 13.5px; }
.rb-ppost img { width: 26px; height: 26px; }
.rb-meta label { font-size: 13px; }
.rb-meta input, .rb-meta select { font-size: 15px; padding: 11px 13px; }
/* Picker de assuntos */
.rb-picksearch { font-size: 14.5px; padding: 10px 12px; }
.rb-dblist { max-height: 440px; }
.rb-dbitem b { font-size: 14.5px; }
.rb-dbmeta { font-size: 12.5px; }
.rb-dbmotivo { font-size: 13px; }
.rb-dbcat { font-size: 12px; }
.rb-dbn { font-size: 12px; }
.rb-dbnota { font-size: 21px; min-width: 46px; }
.rb-dbbrand { font-size: 13px; }
/* Preview (relatório gerado) */
.rp-page { max-width: 760px; padding: 32px; }
.rp-sec h2 { font-size: 23px; }
.rp-intro { font-size: 15px; }
.rp-meta { font-size: 14.5px; }
.rp-ass { padding: 16px; }
.rp-ass-h { font-size: 18px; }
.rp-tags { font-size: 13.5px; }
.rp-resumo, .rp-cap { font-size: 15px; }
.rp-cat { font-size: 14px; }
.rp-howto { font-size: 14px; padding: 10px 13px; }
.rp-metrics { font-size: 13.5px; }
.rp-th { width: 54px; }
.rp-thumb { width: 92px; }

/* posts clicáveis (abrir no TikTok) — editor e preview */
.rb-ppost-a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.rb-ppost-a:hover b { color: var(--accent-2); text-decoration: underline; }
.rb-ppost-ext { font-size: 11px; color: var(--muted); }
.rb-ppost-a:hover .rb-ppost-ext { color: var(--accent-2); }
.rp-th { cursor: pointer; transition: transform .1s ease; }
.rp-th:hover { transform: scale(1.06); }

/* campo "Hoje" no builder */
.rb-hoje { margin-bottom: 14px; }
.rb-hoje label { display: block; font-size: 13px; font-weight: 700; color: #4a4f5a; margin-bottom: 6px; }
.rb-hoje-input { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--text); resize: vertical; }
.rb-hoje-input:focus { outline: none; border-color: #15171c; }

/* ============ Preview 2.0 — relatório branded (alinhado ao Figma real) ============ */
.rp-page { max-width: 760px; background: #fff; padding: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.14); }
/* capa branded (cor via style inline por cliente) */
.rp-cover { padding: 40px 34px 34px; text-align: left; border-bottom: none; margin: 0; }
.rp-brandtop { font-size: 20px; font-weight: 800; letter-spacing: 1px; margin-bottom: 20px; }
.rp-logo { font-family: Georgia, "Times New Roman", serif; font-size: 46px; line-height: 1.1; font-weight: 700; color: inherit; }
.rp-logo span { background: none; border-radius: 0; padding: 0; }  /* anula regra antiga do logo */
.rp-ic { display: inline-block; vertical-align: -0.1em; }
.rp-ic-s { width: 0.74em; height: 0.74em; }
.rp-ic-a { width: 0.7em; height: 0.42em; margin: 0 0.03em; }
.rp-logo i { font-style: italic; }
.rp-arrows { font-family: system-ui, sans-serif; font-weight: 400; letter-spacing: 2px; }
.rp-meta { font-size: 14px; font-weight: 700; margin-top: 18px; color: inherit; }
/* bloco Hoje */
.rp-hoje { padding: 26px 34px 8px; }
.rp-hoje-tag { display: inline-block; font-family: Georgia, serif; font-size: 25px; font-weight: 700;
  background: var(--lime); color: #15171c; padding: 3px 16px; border-radius: 8px;
  box-shadow: 0 0 34px rgba(216,242,58,.75); margin-bottom: 16px; }
.rp-hoje-body { columns: 210px; column-gap: 24px; }
.rp-hoje-body p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #1c1f26; break-inside: avoid; }
/* seções */
.rp-sec { padding: 6px 34px 16px; margin: 0; }
.rp-sec h2 { font-family: Georgia, serif; font-size: 27px; color: #15171c; margin: 14px 0 12px; }
.rp-secarrows { font-family: system-ui; font-size: 18px; color: var(--muted); }
.rp-intro { font-size: 14px; color: #2a2c30; margin: 0 0 14px; line-height: 1.5; }
/* assunto */
.rp-ass { padding: 4px 0 18px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.rp-ass:last-child { border-bottom: none; }
.rp-ass-h { font-size: 17px; color: #15171c; margin-bottom: 6px; }
.rp-ass-h b { text-decoration: underline; text-underline-offset: 3px; }
.rp-ass-cat { font-style: italic; font-weight: 400; color: var(--muted); font-size: 14px; }
.rp-resumo { font-size: 14px; color: #1c1f26; line-height: 1.5; margin-bottom: 8px; }
.rp-tags { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
/* balão "Como usar" (cinza, com rabinho no topo) */
.rp-howto { position: relative; background: #eef0f2; border-radius: 12px; padding: 12px 15px; margin: 10px 0 10px 40px; }
.rp-howto::before { content: ""; position: absolute; top: -7px; left: 22px;
  border: 7px solid transparent; border-top: 0; border-bottom-color: #eef0f2; }
.rp-howto b { display: block; font-size: 12px; color: #15171c; margin-bottom: 4px; }
.rp-howto span { font-size: 13px; font-style: italic; color: #2a2c30; line-height: 1.5; }
/* balão da marca (cor do cliente via style inline) */
.rp-brandcall { border-radius: 12px; padding: 12px 15px; margin: 10px 40px 10px 0; }
.rp-brandcall b { display: block; font-size: 15px; margin-bottom: 4px; }
.rp-brandcall span { font-size: 13px; line-height: 1.5; opacity: .95; }
/* thumbs + métricas */
.rp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rp-th { width: 62px; height: auto; aspect-ratio: 9/14; border-radius: 9px; overflow: hidden; background: #000;
  display: grid; place-items: center; color: #fff; }
.rp-th:hover { transform: scale(1.05); }
.rp-th img { width: 100%; height: 100%; object-fit: cover; }
.rp-metrics { font-size: 12.5px; font-weight: 700; color: #3a3f49; margin-top: 10px; }

/* gerar relatório pronto (Alta Performance / Radar 2.0) */
.rb-gensrc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.rb-gensrc > span { font-size: 12.5px; font-weight: 700; color: #4a4f5a; }
.rb-gensrc-btn { background: #15171c; color: #fff; border: none; border-radius: 8px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rb-gensrc-btn:hover { background: #000; }
.rb-gensrc-sel { background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 6px 9px; font-size: 12.5px; font-family: inherit; color: var(--text); cursor: pointer; }
.rb-gensrc-btn:disabled { opacity: .4; cursor: not-allowed; }
