/* Prévia estilo canal público Telegram (escuro) — Pemasi */
:root {
  --tgpe-bg: #111922;
  --tgpe-bg2: #0d1218;
  --tgpe-pattern: rgba(255, 255, 255, 0.03);
  --tgpe-bubble: #1e2c3a;
  --tgpe-bubble-border: #2a3b4d;
  --tgpe-text: #e8edf2;
  --tgpe-muted: #8b9bab;
  --tgpe-accent: #5fa8ff;
  --tgpe-accent-hover: #7ab8ff;
  --tgpe-card: #17212b;
  --tgpe-btn: #3390ec;
  /* Botão CTA (abaixo da bolha): harmoniza com o tema azul da prévia */
  --tgpe-cta-bg-top: rgba(95, 168, 255, 0.22);
  --tgpe-cta-bg-mid: #243548;
  --tgpe-cta-bg-bottom: #1a2636;
  --tgpe-cta-border: rgba(95, 168, 255, 0.32);
  --tgpe-cta-shadow: rgba(12, 22, 38, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.tgpe-root {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tgpe-text);
  background: var(--tgpe-bg2);
}

body.tgpe-body.tgpe-embed {
  min-height: 0;
}

body.tgpe-body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--tgpe-bg2);
  background-image:
    radial-gradient(circle at 1px 1px, var(--tgpe-pattern) 1px, transparent 0);
  background-size: 24px 24px;
}

.tgpe-preview-banner {
  background: linear-gradient(90deg, #1e3a5f, #2563eb);
  color: #fff;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.tgpe-bg-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(95, 168, 255, 0.12), transparent 55%);
}

.tgpe-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 25, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tgpe-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tgpe-header-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.tgpe-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(145deg, #3d5a80, #2a4a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.tgpe-avatar--lg {
  width: 120px;
  height: 120px;
  font-size: 2rem;
}

.tgpe-card > .tgpe-avatar.tgpe-avatar--lg,
.tgpe-card > img.tgpe-avatar.tgpe-avatar--lg {
  margin-left: auto;
  margin-right: auto;
}

.tgpe-header-titles {
  min-width: 0;
}

.tgpe-header-title {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgpe-header-sub {
  font-size: 0.82rem;
  color: var(--tgpe-muted);
}

.tgpe-layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 960px) {
  .tgpe-layout {
    grid-template-columns: 1fr;
  }
}

.tgpe-feed {
  min-width: 0;
}

.tgpe-date-pill {
  text-align: center;
  margin: 1rem 0;
}

.tgpe-date-pill span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tgpe-muted);
  font-size: 0.82rem;
}

.tgpe-msg-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: flex-start;
}

/* Coluna: bolha (card) + botão CTA + rodapé (views/hora) — o CTA fica fora da bolha. */
.tgpe-msg-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  flex: 1;
  max-width: min(100%, 640px);
}

.tgpe-msg-stack .tgpe-bubble {
  max-width: 100%;
}

.tgpe-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(145deg, #4a6fa5, #2d4a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.tgpe-bubble {
  position: relative;
  background: var(--tgpe-bubble);
  border: 1px solid var(--tgpe-bubble-border);
  border-radius: 12px 12px 12px 4px;
  padding: 0.5rem 0.65rem 0.35rem;
  max-width: min(100%, 640px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  min-height: var(--tgpe-bubble-eq-h, auto);
}

.tgpe-bubble-author {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.tgpe-bubble-author-name {
  color: var(--tgpe-accent);
  text-decoration: none;
}

.tgpe-bubble-author-name:hover {
  text-decoration: underline;
}

.tgpe-forwarded {
  font-size: 0.78rem;
  color: var(--tgpe-accent);
  margin-bottom: 0.35rem;
}

.tgpe-voice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0.35rem 0;
}

.tgpe-voice-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tgpe-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tgpe-voice-bars {
  flex: 1;
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.tgpe-voice-bars span {
  flex: 1;
  max-width: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  height: var(--h, 40%);
}

.tgpe-voice-time {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--tgpe-muted);
  align-self: center;
}

.tgpe-photo {
  margin: 0.25rem 0 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tgpe-photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.tgpe-photo-iframe,
.tgpe-photo-video {
  display: block;
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  max-height: min(70vh, 420px);
  background: #0a0f14;
}

.tgpe-photo-video {
  object-fit: contain;
}

.tgpe-photo-empty-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--tgpe-muted);
}

.tgpe-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 0.8rem;
  color: var(--tgpe-muted);
  font-size: 0.82rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.tgpe-photo-empty[hidden] {
  display: none !important;
}

.tgpe-link-prev {
  display: block;
  margin: 0.35rem 0 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.2);
}

.tgpe-link-prev:hover {
  border-color: rgba(95, 168, 255, 0.35);
}

.tgpe-link-prev-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: #0a0f14;
}

.tgpe-link-prev-body {
  padding: 0.5rem 0.65rem 0.65rem;
}

.tgpe-link-prev-site {
  font-size: 0.78rem;
  color: var(--tgpe-accent);
  margin-bottom: 0.15rem;
}

.tgpe-link-prev-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.tgpe-link-prev-desc {
  font-size: 0.82rem;
  color: var(--tgpe-muted);
  line-height: 1.35;
}

.tgpe-msg-text {
  font-size: 0.94rem;
  line-height: 1.5;
  word-break: break-word;
}

.tgpe-msg-text a {
  color: var(--tgpe-accent);
}

.tgpe-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  position: relative;
}

.tgpe-reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--tgpe-muted);
}

.tgpe-reactions.is-interactive .tgpe-reaction {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--tgpe-muted);
  cursor: pointer;
  padding: 0.16rem 0.42rem;
}

.tgpe-reactions.is-interactive .tgpe-reaction:hover {
  border-color: rgba(95, 168, 255, 0.55);
  color: #fff;
}

.tgpe-reaction-add {
  font-weight: 700;
  min-width: 1.7rem;
  justify-content: center;
}

.tgpe-reaction-emo {
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tgpe-reaction-count {
  min-width: 1ch;
}

@keyframes tgpe-reaction-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 168, 255, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(95, 168, 255, 0);
  }
}

@keyframes tgpe-reaction-emo-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.tgpe-reactions.is-interactive .tgpe-reaction.tgpe-reaction--flash-tap {
  animation: tgpe-reaction-ring 0.55s ease-out;
  border-color: rgba(95, 168, 255, 0.65);
}

.tgpe-reactions.is-interactive .tgpe-reaction.tgpe-reaction--flash-tap .tgpe-reaction-emo {
  animation: tgpe-reaction-emo-pop 0.5s ease;
}

.tgpe-reactions.is-interactive .tgpe-reaction.tgpe-reaction--user-pick {
  border-color: rgba(95, 168, 255, 0.85);
  background: rgba(95, 168, 255, 0.14);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(95, 168, 255, 0.45);
}

/* Anel / pop só no clique (--flash-tap). Incremento automático não anima. */
@media (prefers-reduced-motion: reduce) {
  .tgpe-reactions.is-interactive .tgpe-reaction.tgpe-reaction--flash-tap {
    animation: none;
    box-shadow: 0 0 0 2px rgba(95, 168, 255, 0.45);
  }

  .tgpe-reactions.is-interactive .tgpe-reaction.tgpe-reaction--flash-tap .tgpe-reaction-emo {
    animation: none;
  }

  .tgpe-reaction-emo {
    transition: none;
  }
}

.tgpe-reaction-picker {
  position: fixed;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
  width: min(420px, calc(100vw - 16px));
  max-height: min(52vh, 220px);
  overflow: auto;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 22, 30, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.tgpe-reaction-picker-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.34rem 0.2rem;
}

.tgpe-reaction-picker-btn:hover {
  border-color: rgba(95, 168, 255, 0.55);
  background: rgba(95, 168, 255, 0.12);
}

.tgpe-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-top: 0.4rem;
  width: 100%;
  max-width: 100%;
}

/* CTA imediatamente abaixo do card (fora da .tgpe-bubble), largura da coluna. */
.tgpe-cta-stack--dock {
  margin-top: 0.5rem;
  width: 100%;
}

.tgpe-cta-stack--dock .tgpe-cta-btn {
  border-radius: 8px;
  border: 1px solid var(--tgpe-cta-border);
  background: linear-gradient(
    165deg,
    var(--tgpe-cta-bg-top) 0%,
    var(--tgpe-cta-bg-mid) 38%,
    var(--tgpe-cta-bg-bottom) 100%
  );
  box-shadow:
    0 2px 14px var(--tgpe-cta-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  min-height: 2.55rem;
  padding: 0.55rem 1.7rem 0.55rem 0.65rem;
  font-size: 0.78rem;
}

/* Compound no dock: um único cartão; a regra acima não deve forçar altura mínima nem padding apertado. */
.tgpe-cta-stack--dock .tgpe-cta-btn.tgpe-cta-btn--compound {
  min-height: auto;
  padding: 0.48rem 1.55rem 0.44rem 0.55rem;
  overflow: hidden;
  align-items: stretch;
}

/* Em modo edição, o contorno (.tgpe-visual-hit) não pode ser cortado por overflow. Borda reforçada a condizer com a prévia OnlyFans (.ofpe-cursor). */
.tgpe-visual-edit-on .tgpe-cta-stack--dock .tgpe-cta-btn.tgpe-cta-btn--compound {
  overflow: visible;
  border-color: rgba(0, 175, 240, 0.35);
}

.tgpe-msg-stack > .tgpe-msg-foot {
  margin-top: 0.35rem;
}

.tgpe-msg-stack .tgpe-cta-stack + .tgpe-msg-foot {
  margin-top: 0.28rem;
}

.tgpe-cta-block {
  width: 100%;
}

.tgpe-cta-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.5rem 1.65rem 0.5rem 0.6rem;
  border-radius: 6px;
  background: linear-gradient(
    165deg,
    rgba(95, 168, 255, 0.14) 0%,
    rgba(30, 44, 58, 0.95) 45%,
    rgba(24, 35, 50, 0.98) 100%
  );
  border: 1px solid rgba(95, 168, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

/* Modo edição: texto + «Definir URL» dentro do mesmo .tgpe-cta-btn--compound */
.tgpe-cta-btn.tgpe-cta-btn--compound {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0.42rem 1.65rem 0.38rem 0.55rem;
  min-height: auto;
  cursor: default;
}

.tgpe-visual-edit-on .tgpe-cta-btn.tgpe-cta-btn--compound {
  cursor: pointer;
}

/* Um só alvo de clique: o interior não recebe eventos (sincronização continua a usar data-tgpe-field). */
.tgpe-visual-edit-on .tgpe-cta-btn--compound .tgpe-cta-compound-inner,
.tgpe-visual-edit-on .tgpe-cta-btn--compound .tgpe-cta-btn-label,
.tgpe-visual-edit-on .tgpe-cta-btn--compound .tgpe-cta-url-edit,
.tgpe-visual-edit-on .tgpe-cta-btn--compound .tgpe-cta-btn-ico {
  pointer-events: none;
  user-select: none;
}

.tgpe-cta-compound-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.18rem;
  width: 100%;
  min-width: 0;
}

.tgpe-cta-btn.tgpe-cta-btn--compound .tgpe-cta-btn-label {
  padding-right: 1.1rem;
  text-align: center;
}

.tgpe-cta-btn.tgpe-cta-btn--compound .tgpe-cta-url-edit {
  margin: 0;
  padding: 0.12rem 0.35rem 0.05rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--tgpe-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
}

.tgpe-visual-edit-on .tgpe-cta-btn.tgpe-cta-btn--compound:hover .tgpe-cta-url-edit {
  color: var(--tgpe-accent-hover);
  background: transparent;
}

.tgpe-cta-btn--static {
  cursor: default;
}

.tgpe-cta-btn-label {
  word-break: break-word;
}

.tgpe-cta-btn-ico {
  position: absolute;
  top: 0.28rem;
  right: 0.38rem;
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0.88;
  font-weight: 500;
}

.tgpe-cta-btn--compound .tgpe-cta-btn-ico {
  top: 0.32rem;
}

.tgpe-cta-url-edit {
  display: block;
  width: 100%;
  margin-top: 0.12rem;
  padding: 0.12rem 0;
  font-size: 0.72rem;
  color: var(--tgpe-accent);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tgpe-cta-url-edit:hover {
  text-decoration: underline;
}

.tgpe-msg-foot {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--tgpe-muted);
}

.tgpe-msg-views {
  font-weight: 500;
  color: var(--tgpe-muted);
}

.tgpe-msg-views.tgpe-public-msg-views {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  max-width: 100%;
}

.tgpe-msg-views-ic {
  flex-shrink: 0;
  opacity: 0.88;
  vertical-align: middle;
}

.tgpe-msg-views-num {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tgpe-msg-views-lbl {
  font-weight: 400;
  opacity: 0.9;
  white-space: nowrap;
}

.tgpe-add-post-btn {
  flex: 1;
  max-width: min(100%, 640px);
  min-height: var(--tgpe-bubble-eq-h, 0px);
  border: 1px dashed rgba(95, 168, 255, 0.55);
  background: rgba(95, 168, 255, 0.08);
  color: #dceeff;
  border-radius: 12px 12px 12px 4px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.tgpe-add-post-btn:hover {
  background: rgba(95, 168, 255, 0.16);
}

.tgpe-add-post-row {
  margin-top: 0.35rem;
  align-items: stretch;
}

.tgpe-add-post-avatar {
  opacity: 0.9;
}

.tgpe-add-post-btn::before {
  content: "+ ";
}

.tgpe-sidebar {
  position: sticky;
  top: 72px;
}

@media (max-width: 960px) {
  .tgpe-sidebar {
    position: relative;
    top: auto;
  }
}

.tgpe-card {
  background: var(--tgpe-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.tgpe-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0 0.15rem;
}

.tgpe-card-handle {
  font-size: 0.95rem;
  color: var(--tgpe-accent);
}

.tgpe-card-handle-username {
  font-weight: 600;
}

.tgpe-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tgpe-counter-val {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.tgpe-counter-lbl {
  font-size: 0.72rem;
  color: var(--tgpe-muted);
  text-transform: lowercase;
}

.tgpe-card-bio {
  text-align: left;
  font-size: 0.88rem;
  color: var(--tgpe-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.tgpe-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--tgpe-btn);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.tgpe-dl-btn:hover {
  filter: brightness(1.08);
}

.tgpe-dl-btn--static {
  cursor: default;
  user-select: none;
}

.tgpe-card-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-size: 0.72rem;
}

.tgpe-card-foot-item {
  color: var(--tgpe-muted);
  cursor: default;
  user-select: none;
}

/* Edição visual no iframe: mesmo estilo que .ofpe-cursor na prévia OnlyFans (ex.: of-bio) */
.tgpe-visual-edit-on .tgpe-visual-hit {
  cursor: pointer;
  outline: 1px dashed rgba(0, 175, 240, 0.4);
  outline-offset: 2px;
  border-radius: 3px;
}

.tgpe-visual-edit-on .tgpe-visual-hit:hover {
  outline-color: rgba(0, 175, 240, 0.85);
}

/* `overflow: hidden` no mesmo nó (ou no pai) recorta o contorno: estes têm de ficar visíveis. */
.tgpe-visual-edit-on .tgpe-header-title.tgpe-visual-hit {
  overflow: visible;
}

.tgpe-visual-edit-on .tgpe-photo.tgpe-visual-hit {
  overflow: visible;
  position: relative;
}

/* Vídeo/iframes capturam clique (reproduzir / embed); camada sobreposta repassa edição ao .tgpe-photo. */
.tgpe-visual-edit-on .tgpe-photo.tgpe-visual-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  cursor: pointer;
}

.tgpe-visual-edit-on .tgpe-photo.tgpe-visual-hit > img,
.tgpe-visual-edit-on .tgpe-photo.tgpe-visual-hit .tgpe-photo-video,
.tgpe-visual-edit-on .tgpe-photo.tgpe-visual-hit .tgpe-photo-iframe {
  border-radius: 8px;
  pointer-events: none;
}

.tgpe-visual-edit-on .tgpe-link-prev {
  overflow: visible;
}

.tgpe-visual-edit-on .tgpe-link-prev-img {
  border-radius: 6px 6px 0 0;
}

/* Mesma largura útil para bolhas, clones e «Adicionar postagem» (evita shrink-to-fit do texto curto) */
.tgpe-visual-edit-on .tgpe-msg-row > .tgpe-bubble {
  flex: 1;
  min-width: 0;
}

.tgpe-visual-edit-on .tgpe-add-post-btn {
  min-width: 0;
  box-sizing: border-box;
}

.tgpe-link-prev-url-hit {
  font-size: 0.72rem;
  margin: 0.25rem 0 0.4rem;
  opacity: 0.85;
}
