/* =====================================================================
   Chatmock — aparência da conversa renderizada (.cm-*)
   Independente do tema do site: as cores vêm do documento da conversa.
   ===================================================================== */

.cm-phone {
    --cm-font-scale: 1;
    --cm-accent: #25d366;
    --cm-text: #111b21;
    --cm-muted: #667781;
    /* Papel de parede de rabiscos (desenho próprio, ver img/wallpaper-doodles.svg) */
    --cm-pattern-src: url('../img/wallpaper-doodles.svg');
    --cm-pattern-src-dark: url('../img/wallpaper-doodles-dark.svg');

    /* Trocada por sistema logo abaixo (.cm-phone--ios / --droid). */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    flex: none;
    position: relative;
    border-radius: 30px;
    background: #0b0f14;
    padding: 0;
    box-shadow: 0 8px 30px rgba(17, 17, 19, .14);
    overflow: hidden;
    line-height: 1.4;
    color: var(--cm-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tipografia de cada sistema: San Francisco no iPhone, Roboto no Android.
   Quando a fonte não existe na máquina, a lista cai para a mais parecida. */
.cm-phone--ios {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
                 'Helvetica Neue', 'Segoe UI', sans-serif;
    letter-spacing: -.012em;
}
.cm-phone--droid {
    font-family: Roboto, 'Noto Sans', 'Segoe UI', -apple-system, 'Helvetica Neue', sans-serif;
    letter-spacing: 0;
}
/* No iPhone o texto da conversa é um pouco maior. */
.cm-phone--ios .cm-bubble { font-size: calc(16.4px * var(--cm-font-scale)); }
.cm-phone--ios .cm-header__name { font-size: calc(17px * var(--cm-font-scale)); font-weight: 600; }

.cm-phone--none { border-radius: 12px; box-shadow: 0 4px 18px rgba(17, 17, 19, .1); }
.cm-phone--android  { padding: 8px;  border-radius: 34px; }
.cm-phone--iphone   { padding: 10px; border-radius: 46px; }
.cm-phone--iphone15 { padding: 10px; border-radius: 50px; }

.cm-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #efe9de;
}
.cm-phone--none .cm-screen    { border-radius: 12px; }
.cm-phone--iphone .cm-screen,
.cm-phone--iphone15 .cm-screen { border-radius: 38px; }

/* Formato da imagem: cantos retos e sombra ligada/desligada.
   Úteis para encaixar o print em uma arte que já tem moldura própria. */
.cm-phone--square,
.cm-phone--square .cm-screen { border-radius: 0; }

.cm-phone--flat { box-shadow: none; }

/* --------------------------------------------------------------- notch */
.cm-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 150px; height: 26px;
    background: #0b0f14;
    border-radius: 0 0 18px 18px;
    z-index: 5;
}
.cm-phone--iphone15 .cm-notch {
    top: 9px;
    width: 110px; height: 30px;
    border-radius: 99px;
}

/* --------------------------------------------------------- barra status */
.cm-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px 4px;
    font-size: calc(15.5px * var(--cm-font-scale));
    font-weight: 700;
    letter-spacing: 0;
    flex: none;
    position: relative;
    z-index: 6;
}
/* No iPhone o relógio é maior e as bordas têm mais respiro. */
.cm-phone--iphone .cm-statusbar,
.cm-phone--iphone15 .cm-statusbar {
    padding: 14px 26px 5px;
    font-size: calc(17px * var(--cm-font-scale));
    letter-spacing: -.02em;
}

.cm-statusbar__left,
.cm-statusbar__right { display: flex; align-items: center; gap: 7px; }
.cm-phone--iphone .cm-statusbar__right,
.cm-phone--iphone15 .cm-statusbar__right { gap: 5px; }
.cm-statusbar__carrier { font-weight: 500; font-size: .82em; opacity: .8; }

.cm-signal { display: flex; align-items: flex-end; gap: 1.6px; }
.cm-signal__bar { width: 3.2px; border-radius: 1.1px; display: block; }

.cm-battery { display: flex; align-items: center; }
.cm-battery__shell {
    position: relative;
    width: 25px; height: 13px;
    border: 1px solid currentColor;
    border-radius: 4.2px;
    /* Folga interna de 1px: o nível encosta no contorno, como no aparelho.
       Antes eram 1,6px e o preenchimento parecia cortado antes do topo. */
    padding: 1px;
    /* A cor do contorno vem do renderer, em rgba: color-mix() quebrava a
       exportação em PNG, e opacity aqui deixaria o nível translúcido junto. */
}
.cm-battery__fill { height: 100%; border-radius: 2.8px; }
.cm-battery__tip {
    width: 1.6px; height: 4.6px;
    background: currentColor;
    border-radius: 0 1.5px 1.5px 0;
    /* Quase encostada no corpo, como no aparelho. */
    margin-left: .5px;
    opacity: .38;
    display: block;
}
.cm-battery__bolt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* ------------------------------------------------------------ cabeçalho */
.cm-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 9px;
    flex: none;
    position: relative;
    z-index: 4;
}

.cm-header__back {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: .95;
    flex: none;
}
.cm-header__unread {
    font-size: calc(13px * var(--cm-font-scale));
    font-weight: 600;
    min-width: 17px;
    text-align: center;
}

.cm-header__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    background: #d8d3c8;
    display: grid;
    place-items: center;
}
.cm-header__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-header__avatar--initials {
    font-weight: 700;
    font-size: calc(15px * var(--cm-font-scale));
    color: #fff;
    background: #8696a0;
}

.cm-header__info { flex: 1; min-width: 0; }
.cm-header__name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.cm-header__name {
    font-size: calc(16px * var(--cm-font-scale));
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-header__verified, .cm-header__mute { flex: none; opacity: .85; }
.cm-header__sub {
    font-size: calc(12.5px * var(--cm-font-scale));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: -1px;
}
.cm-header__actions { display: flex; align-items: center; gap: 16px; opacity: .9; flex: none; }

/* ---------------------------------------------------------------- corpo */
.cm-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* A margem lateral também abre espaço para o rabinho, que fica 8px
       fora do balão. */
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
}
.cm-body--compact { gap: 2px; padding: 10px 14px 12px; }
.cm-body--relaxed { gap: 9px; padding: 16px 20px 20px; }

.cm-body::-webkit-scrollbar { width: 5px; }
.cm-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .16); border-radius: 3px; }

/* Papel de parede de rabiscos.
   Entra como background-image, e não como máscara CSS, porque o gerador de
   PNG (html2canvas) não desenha máscaras — o padrão sumiria justamente na
   exportação. Por isso há um arquivo para cada tema, com o traço na cor certa.
   A opacidade do traço está no próprio SVG. */
.cm-body--pattern {
    background-image: var(--cm-pattern-src);
    background-size: 300px 300px;
    background-repeat: repeat;
}
.cm-phone--dark .cm-body--pattern {
    background-image: var(--cm-pattern-src-dark);
}

.cm-empty {
    margin: auto;
    text-align: center;
    font-size: calc(13px * var(--cm-font-scale));
    color: var(--cm-muted);
    opacity: .75;
    padding: 24px;
    max-width: 26ch;
}

/* --------------------------------------------------------------- linhas */
.cm-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 100%;
}
.cm-row--out { justify-content: flex-end; }
.cm-row--in  { justify-content: flex-start; }

/* Confirmação visual do clique na prévia.
   `outline` desenha um retângulo em volta da caixa e ignora o rabinho — por
   isso ficava solto. `drop-shadow` segue a silhueta real do balão, rabinho
   incluído, então o contorno cola na forma. O editor tira a classe depois de
   um instante e a transição faz o contorno sumir sozinho. */
.cm-row .cm-bubble { transition: filter .35s ease; }

.cm-row.is-selected .cm-bubble {
    filter:
        drop-shadow( 1.4px 0 0 var(--cm-accent))
        drop-shadow(-1.4px 0 0 var(--cm-accent))
        drop-shadow(0  1.4px 0 var(--cm-accent))
        drop-shadow(0 -1.4px 0 var(--cm-accent));
}

.cm-row__avatar {
    width: 27px; height: 27px;
    border-radius: 50%;
    flex: none;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: calc(10.5px * var(--cm-font-scale));
    font-weight: 700;
    color: #fff;
    margin-bottom: 1px;
}
.cm-row__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cm-row__avatar--hidden { visibility: hidden; }

/* --------------------------------------------------------------- balões */
.cm-bubble {
    position: relative;
    max-width: 78%;
    padding: 6px 9px 7px;
    /* O arredondamento vem da variável (definida pelo renderer) e não de
       style inline, para que as regras de canto do rabinho possam ajustá-lo. */
    border-radius: var(--cm-bubble-radius, 18px);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
    font-size: calc(15px * var(--cm-font-scale));
    word-break: break-word;
    overflow-wrap: anywhere;
}
.cm-bubble--bare { box-shadow: none; padding: 0; }
.cm-bubble--highlight { box-shadow: 0 0 0 2px var(--cm-accent), 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------------------------------------------------------------- rabinho
   A "orelhinha" do balão. O canto do balão daquele lado fica reto para que
   rabinho e balão formem uma peça só, sem emenda visível.

   A posição muda conforme o app: no WhatsApp ela nasce no canto de cima;
   no Telegram e no iMessage, no canto de baixo. Instagram, Messenger e SMS
   usam balões sem rabinho.
   ------------------------------------------------------------------------ */
/* O SVG do rabinho é filho do balão. O canto do balão daquele lado fica reto
   para que os dois formem uma peça só, sem emenda.

   O renderer marca o aparelho com cm-phone--tail-top | -bottom | -none,
   conforme o app: cada estilo tem seu bloco e nenhuma regra desfaz a outra. */
.cm-tail {
    position: absolute;
    color: var(--cm-tail-color);
    pointer-events: none;
    display: block;
}

/* --- rabinho no canto de cima (WhatsApp) --- */
.cm-phone--tail-top .cm-row--in  .cm-bubble--tail { border-top-left-radius: 0; }
.cm-phone--tail-top .cm-row--in  .cm-tail { top: 0; left: -8px; }

.cm-phone--tail-top .cm-row--out .cm-bubble--tail { border-top-right-radius: 0; }
.cm-phone--tail-top .cm-row--out .cm-tail { top: 0; right: -8px; }

/* --- rabinho no canto de baixo (Telegram e iMessage): mesma forma, virada --- */
.cm-phone--tail-bottom .cm-row--in  .cm-bubble--tail { border-bottom-left-radius: 0; }
.cm-phone--tail-bottom .cm-row--in  .cm-tail { bottom: 0; left: -8px; transform: scaleY(-1); }

.cm-phone--tail-bottom .cm-row--out .cm-bubble--tail { border-bottom-right-radius: 0; }
.cm-phone--tail-bottom .cm-row--out .cm-tail { bottom: 0; right: -8px; transform: scaleY(-1); }

.cm-bubble--typing { padding: 11px 13px; }
.cm-bubble--sticker { background: transparent !important; box-shadow: none; padding: 0; }

/* --------------------------------------------------------------- texto */
.cm-text { line-height: 1.36; white-space: pre-wrap; font-weight: 350; }
.cm-text code {
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: .88em;
    background: rgba(0, 0, 0, .06);
    padding: 1px 4px;
    border-radius: 4px;
}
.cm-phone--dark .cm-text code { background: rgba(255, 255, 255, .1); }
.cm-text a { color: #027eb5; text-decoration: underline; }
.cm-text--emoji { font-size: calc(40px * var(--cm-font-scale)); line-height: 1.15; }

.cm-caption {
    font-size: calc(14px * var(--cm-font-scale));
    line-height: 1.35;
    padding: 5px 2px 0;
    white-space: pre-wrap;
}

/* ---------------------------------------------------------------- meta */
.cm-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: calc(11px * var(--cm-font-scale));
    color: var(--cm-muted);
    white-space: nowrap;
    line-height: 1;
    vertical-align: bottom;
}
.cm-meta--inline { float: right; margin: 6px 0 -2px 9px; }
.cm-meta--block  { display: flex; justify-content: flex-end; margin-top: 3px; }
.cm-bubble--out .cm-meta { color: inherit; opacity: .72; }

.cm-time { opacity: .85; }
.cm-edited { font-style: italic; opacity: .7; }
.cm-status-icon, .cm-meta-icon { display: inline-flex; align-items: center; }

/* ------------------------------------------------------------ etiquetas */
.cm-sender {
    font-size: calc(12.6px * var(--cm-font-scale));
    font-weight: 450;
    margin-bottom: 1px;
    line-height: 1.25;
}

.cm-forwarded, .cm-pinned {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: calc(12px * var(--cm-font-scale));
    font-style: italic;
    color: var(--cm-muted);
    opacity: .85;
    margin-bottom: 2px;
}

/* -------------------------------------------------------------- resposta */
.cm-reply {
    display: flex;
    gap: 8px;
    align-items: stretch;
    background: rgba(0, 0, 0, .055);
    border-left: 3.5px solid var(--cm-accent);
    border-radius: 6px;
    padding: 5px 8px;
    margin-bottom: 4px;
    overflow: hidden;
}
.cm-phone--dark .cm-reply { background: rgba(255, 255, 255, .07); }
.cm-reply__content { flex: 1; min-width: 0; }
.cm-reply__sender {
    font-size: calc(12.5px * var(--cm-font-scale));
    font-weight: 600;
    color: var(--cm-accent);
    line-height: 1.3;
}
.cm-reply__text {
    font-size: calc(12.8px * var(--cm-font-scale));
    opacity: .72;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cm-reply__thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; flex: none; }

/* -------------------------------------------------------------- reações */
.cm-reactions {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin: 5px 0 -10px;
    position: relative;
    z-index: 2;
}
.cm-reaction {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 99px;
    padding: 1px 6px 2px;
    font-size: calc(12px * var(--cm-font-scale));
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.cm-phone--dark .cm-reaction { background: #2a3942; border-color: rgba(255, 255, 255, .08); }
.cm-reaction__count { font-size: .82em; color: var(--cm-muted); font-weight: 600; }

/* ---------------------------------------------------------------- chips */
.cm-chip {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: calc(12.5px * var(--cm-font-scale));
    font-weight: 500;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .07);
    margin: 6px auto;
    max-width: 88%;
    text-align: center;
}
.cm-phone--dark .cm-chip { background: #182229; color: #8696a0; }
.cm-chip--date { font-weight: 600; }
.cm-chip--system {
    background: #ffeecd;
    color: #5f6d75;
    font-size: calc(12px * var(--cm-font-scale));
    line-height: 1.35;
    padding: 6px 14px;
}
.cm-phone--dark .cm-chip--system { background: #182229; color: #ffd279; }

.cm-unread {
    align-self: stretch;
    text-align: center;
    background: #fff;
    color: var(--cm-muted);
    font-size: calc(11.5px * var(--cm-font-scale));
    font-weight: 600;
    letter-spacing: .06em;
    padding: 5px;
    /* Negativo igual ao padding lateral do corpo: a faixa vai de borda a borda. */
    margin: 6px -16px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.cm-phone--dark .cm-unread { background: #182229; }

/* ------------------------------------------------------------- digitando */
.cm-typing { display: inline-flex; gap: 4px; padding: 1px 2px; }
.cm-typing__dot {
    width: 6.5px; height: 6.5px;
    border-radius: 50%;
    background: #9aa3ab;
    animation: cmTyping 1.25s infinite ease-in-out;
}
@keyframes cmTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: .45; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

/* ---------------------------------------------------------------- mídia */
.cm-media {
    position: relative;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(0, 0, 0, .06);
    display: grid;
    place-items: center;
    max-width: 100%;
}
.cm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-media--empty {
    border: 1.5px dashed rgba(0, 0, 0, .18);
    background: rgba(0, 0, 0, .03);
}
.cm-media__hint {
    font-size: calc(12px * var(--cm-font-scale));
    color: var(--cm-muted);
    text-align: center;
    padding: 8px;
}
.cm-media--blur img { filter: blur(14px) saturate(.7); transform: scale(1.1); }

.cm-media__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    display: grid;
    place-items: center;
    padding-left: 3px;
}
.cm-media__badge {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border-radius: 99px;
    padding: 5px 12px;
    font-size: calc(12px * var(--cm-font-scale));
    white-space: nowrap;
}
.cm-media__badge--corner { top: 8px; left: 8px; transform: none; padding: 3px 8px; }

/* ---------------------------------------------------------------- áudio */
.cm-audio { display: flex; align-items: center; gap: 9px; min-width: 218px; padding: 2px 0; }
.cm-audio__play { background: none; border: none; padding: 0; cursor: default; display: flex; }
.cm-audio__middle { flex: 1; min-width: 0; }
.cm-audio__wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.cm-audio__bar { width: 2.6px; border-radius: 2px; display: block; flex: 1; max-width: 3px; }
.cm-audio__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    font-size: calc(11px * var(--cm-font-scale));
    color: var(--cm-muted);
}
.cm-audio__speed {
    color: #fff;
    border-radius: 99px;
    padding: 1px 7px;
    font-size: .92em;
    font-weight: 600;
}
.cm-audio__avatar {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    flex: none;
    background: rgba(0, 0, 0, .1);
    display: grid;
    place-items: center;
    color: var(--cm-muted);
}
.cm-audio__avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
/* Selo de microfone no canto da foto. */
.cm-audio__mic {
    position: absolute;
    right: -2px; bottom: -1px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: inherit;
    display: grid;
    place-items: center;
}
.cm-audio__avatar .cm-audio__mic { background: var(--cm-tail-color, #fff); }
.cm-audio__transcript {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: calc(13.5px * var(--cm-font-scale));
    line-height: 1.35;
    opacity: .9;
}

/* ----------------------------------------------------------- figurinha */
.cm-sticker { display: block; object-fit: contain; }
.cm-sticker--emoji { line-height: 1; text-align: center; }

/* ----------------------------------------------------------- documento */
.cm-doc {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(0, 0, 0, .04);
    border-radius: 8px;
    padding: 9px 11px;
    min-width: 214px;
}
.cm-phone--dark .cm-doc { background: rgba(255, 255, 255, .06); }

.cm-doc__icon { flex: none; display: flex; }
/* Folha de papel colorida conforme o tipo do arquivo. */
.cm-doc__sheet { display: block; }

.cm-doc__info { flex: 1; min-width: 0; }
.cm-doc__name {
    font-size: calc(15px * var(--cm-font-scale));
    font-weight: 350;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-doc__meta {
    font-size: calc(12.4px * var(--cm-font-scale));
    color: var(--cm-muted);
    margin-top: 2px;
}

/* -------------------------------------------------------- localização */
.cm-loc { border-radius: 8px; overflow: hidden; width: 226px; max-width: 100%; }
.cm-loc__map { height: 130px; background: #cfd8dc; display: grid; place-items: center; overflow: hidden; }
.cm-loc__map img { width: 100%; height: 100%; object-fit: cover; }
.cm-loc__map--placeholder {
    background:
        repeating-linear-gradient(45deg, #e0e5e3 0 12px, #d7dedc 12px 24px),
        #dde4e2;
}
.cm-loc__info { padding: 7px 9px 2px; }
.cm-loc__title { font-size: calc(14px * var(--cm-font-scale)); font-weight: 350; }
.cm-loc__addr  { font-size: calc(12.4px * var(--cm-font-scale)); color: var(--cm-muted); }
.cm-loc__live  { font-size: calc(11.8px * var(--cm-font-scale)); color: #2196f3; margin-top: 2px; }

/* ------------------------------------------------------------- contato */
.cm-contact { min-width: 214px; }
.cm-contact__head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.cm-contact__avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .1);
    overflow: hidden;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--cm-muted);
}
.cm-contact__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cm-contact__name  { font-size: calc(14.5px * var(--cm-font-scale)); font-weight: 350; }
.cm-contact__phone { font-size: calc(12.4px * var(--cm-font-scale)); color: var(--cm-muted); }
.cm-contact__action {
    border-top: 1px solid rgba(0, 0, 0, .1);
    text-align: center;
    padding: 7px 0 2px;
    font-size: calc(13.5px * var(--cm-font-scale));
    font-weight: 500;
}
.cm-phone--dark .cm-contact__action { border-top-color: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- link */
.cm-link {
    background: rgba(0, 0, 0, .05);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 4px;
    width: 226px;
    max-width: 100%;
}
.cm-phone--dark .cm-link { background: rgba(255, 255, 255, .06); }
.cm-link__img  { width: 100%; height: 116px; object-fit: cover; display: block; }
.cm-link__info { padding: 7px 9px; }
.cm-link__title {
    font-size: calc(13.4px * var(--cm-font-scale));
    font-weight: 450;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cm-link__desc {
    font-size: calc(12.2px * var(--cm-font-scale));
    color: var(--cm-muted);
    line-height: 1.3;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cm-link__domain {
    font-size: calc(11.6px * var(--cm-font-scale));
    color: var(--cm-muted);
    text-transform: lowercase;
    margin-top: 3px;
}
.cm-link__url a,
.cm-link__url .cm-link__href { color: #027eb5; }

/* -------------------------------------------------------------- enquete */
.cm-poll { min-width: 226px; }
.cm-poll__question {
    font-size: calc(14.5px * var(--cm-font-scale));
    font-weight: 350;
    margin-bottom: 8px;
}
.cm-poll__row { margin-bottom: 8px; }
.cm-poll__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: calc(13px * var(--cm-font-scale));
    margin-bottom: 3px;
}
.cm-poll__votes { color: var(--cm-muted); font-size: .9em; }
.cm-poll__track { height: 4px; background: rgba(0, 0, 0, .1); border-radius: 3px; overflow: hidden; }
.cm-phone--dark .cm-poll__track { background: rgba(255, 255, 255, .12); }
.cm-poll__fill { height: 100%; border-radius: 3px; transition: width .3s; }
.cm-poll__foot {
    font-size: calc(11.8px * var(--cm-font-scale));
    color: var(--cm-muted);
    border-top: 1px solid rgba(0, 0, 0, .08);
    padding-top: 6px;
    text-align: center;
}

/* -------------------------------------------------------------- botões */
.cm-buttons__list { margin-top: 6px; display: grid; gap: 1px; }
.cm-buttons__item {
    text-align: center;
    padding: 8px 4px;
    font-size: calc(13.8px * var(--cm-font-scale));
    font-weight: 350;
    border-top: 1px solid rgba(0, 0, 0, .09);
    margin: 0 -9px;
}
.cm-phone--dark .cm-buttons__item { border-top-color: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------- pagamento */
.cm-payment { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.cm-payment__icon { flex: none; display: flex; }
.cm-payment__amount { font-size: calc(19px * var(--cm-font-scale)); font-weight: 500; letter-spacing: -.02em; }
.cm-payment__label  { font-size: calc(12.5px * var(--cm-font-scale)); color: var(--cm-muted); }
.cm-payment__state {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, .09);
    font-size: calc(12.5px * var(--cm-font-scale));
    font-weight: 600;
    text-align: center;
}

/* ------------------------------------------------------------- chamada */
.cm-bubble--call { display: flex; align-items: center; gap: 11px; min-width: 216px; padding: 9px 12px; }
.cm-call__icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    display: grid;
    place-items: center;
    flex: none;
}
.cm-phone--dark .cm-call__icon { background: rgba(255, 255, 255, .09); }
.cm-call__info { flex: 1; min-width: 0; }
.cm-call__title { font-size: calc(14.6px * var(--cm-font-scale)); font-weight: 450; }
.cm-call__sub {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: calc(13px * var(--cm-font-scale));
    color: var(--cm-muted);
}

/* -------------------------------------------------------------- apagada */
.cm-deleted {
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
    color: var(--cm-muted);
    font-size: calc(14px * var(--cm-font-scale));
    opacity: .85;
}

/* ------------------------------------------------------- barra de envio */
.cm-inputbar {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 12px 11px;
    flex: none;
}
.cm-inputbar__field {
    flex: 1;
    height: 38px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    min-width: 0;
}
.cm-inputbar__placeholder {
    font-size: calc(15px * var(--cm-font-scale));
    color: var(--cm-muted);
    opacity: .8;
}
.cm-inputbar__mic {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    flex: none;
}

/* --------------------------------------------- marca d'água na exportação */
.cm-watermark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 99px;
    z-index: 20;
    pointer-events: none;
}

/* ------------------------------------------------------------ ajustes */
@media (prefers-reduced-motion: reduce) {
    .cm-typing__dot { animation: none; opacity: .6; }
}

/* Tipo da rede móvel na barra de status (4G, 5G…), no lugar do Wi-Fi. */
.cm-statusbar__net {
    font-size: calc(16px * var(--cm-font-scale));
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1;
    /* Altura igual à da bateria e do leque de sinal: com a caixa do mesmo
       tamanho dos ícones, o texto centraliza junto com eles em vez de
       flutuar pela caixa de linha da fonte. */
    display: inline-flex;
    align-items: center;
    height: 12px;
}
