/* =====================================================================
   Relatório do cliente: pensado para o celular. Identidade "Jardim" da TAG Dantas:
   fonte Plus Jakarta Sans, cartões brancos sobre o fundo pedra, o primeiro número num cartão
   verde-palmeira em forma de etiqueta (com o furo terracota que pulsa) e o mesmo ponto da etiqueta marcando cada seção
   e o fim de cada gráfico. A cor do cliente fica no avatar.
   ===================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.r {
  color-scheme: light;
  --bg: #F1F0EA;               /* fundo: cinza levemente verde */
  --card: #FFFFFF;
  --card-2: #ECEBE3;           /* trilhos de barra, chips */
  --ink: #14160F;
  --ink-2: #33362B;
  --muted: #5E6355;
  --faint: #8A8E7E;
  --line: rgba(20, 22, 15, .08);
  --good: #2E6B3C;
  --good-bg: #E2EDDC;
  --bad: #A51F3D;
  --bad-bg: #FBE4EA;
  --neutral-bg: rgba(20, 22, 15, .06);
  --warn: #8F5B00;
  --warn-bg: #FFF3DC;
  --warn-bar: #F5A524;
  --tip-bg: #14160F;
  --tip-ink: #F2F1EC;
  --brand: #3F6E4A;            /* verde TAG */
  --brand-text: #3F6E4A;
  --mint: #9CC5A2;             /* verde-sálvia claro: barras de "bom" e de "tem verba" */
  --ember: #B5381B;            /* terracota: o destaque da marca */
  --ember-light: #E0734F;      /* terracota no cartão escuro: linha, furo da etiqueta */
  --chart: #3F6E4A;            /* linhas e barras (no cartão-destaque vira menta) */
  --tint: #E6EDDF;             /* cartão tingido */
  --tint-ink: #335C3C;
  --hero: #213C32;             /* cartão-destaque (verde-noite) */
  --hero-2: #15281F;
  --glow: rgba(224, 115, 79, .24);
  --glow-2: rgba(63, 110, 74, .5);
  /* o cartão-destaque é escuro nos dois temas: estas cores valem para ele sempre */
  --hero-ink: #FFFFFF;
  --hero-muted: #A9B597;
  --hero-line: rgba(255, 255, 255, .1);
  --hero-chip: rgba(255, 255, 255, .1);
  --hp-good: #B4DDA6;
  --hp-good-bg: rgba(180, 221, 166, .16);
  --hp-bad: #FFA9BA;
  --hp-bad-bg: rgba(255, 150, 170, .16);
  --accent: #3F6E4A;           /* cor do cliente (avatar); sobrescrita pelo relatório */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgba(20, 22, 15, .05), 0 12px 32px -20px rgba(20, 22, 15, .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .r:not(.is-pdf) {
    color-scheme: dark;
    --bg: #0E100B;
    --card: #181A13;
    --card-2: #22251B;
    --ink: #ECEDE6;
    --ink-2: #CDD0C3;
    --muted: #9EA392;
    --faint: #7A7F6E;
    --line: rgba(255, 255, 255, .08);
    --good: #9CD3A0;
    --good-bg: #1B2C1E;
    --bad: #FF9BAE;
    --bad-bg: #3A1A22;
    --neutral-bg: rgba(255, 255, 255, .08);
    --warn: #F5C060;
    --warn-bg: #2B210D;
    --warn-bar: #F5B547;
    --tip-bg: #ECEDE6;
    --tip-ink: #14160F;
    --brand-text: #9CC5A2;
    --chart: #9CC5A2;
    --tint: #1C2A1E;
    --tint-ink: #A8D3A8;
    --hero: #213C32;
    --hero-2: #142619;
    --glow: rgba(224, 115, 79, .2);
    --glow-2: rgba(63, 110, 74, .35);
    --shadow: 0 0 0 1px rgba(255, 255, 255, .05);
  }
}

body.r {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Barra da agência (não aparece para o cliente) ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto; white-space: nowrap;
  font-family: var(--sans); font-size: 14px;
}
.toolbar .spacer { flex: 1; }
.toolbar select, .toolbar input, .toolbar button, .toolbar .btn { flex: none; font-family: var(--sans); border-radius: 980px; }
.toolbar button.primary { background: var(--brand); color: #fff; }
.toolbar button.primary:hover { filter: none; opacity: .9; }

/* ---------- Folha ---------- */
.sheet { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
/* Título de seção: o ponto da etiqueta (anel verde) antes do nome */
.sub {
  margin: 30px 4px 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
  font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
}
.sub::before { content: ""; flex: none; align-self: center; width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--brand); }
.sub span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Logo: a etiqueta "td" (o furo é recortado por uma máscara) */
.tag-logo { display: block; width: 36px; height: 24px; flex: none; }
.tag-logo .lg-body { fill: var(--brand); }
.tag-logo .lg-t { fill: #FFFFFF; font: 800 13.5px var(--sans); letter-spacing: -0.02em; }
.tag-logo .lg-dot { fill: var(--ember); }

/* Capa */
.masthead { padding: 26px 4px 20px; }
.brandline {
  margin: 0 0 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.brandline .who { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 14.5px; font-weight: 800; letter-spacing: -0.02em; }
.client-row { display: flex; align-items: center; gap: 14px; }
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 18px; object-fit: cover;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
}
.client { margin: 0; font-size: clamp(27px, 7.6vw, 34px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.period { margin: 5px 0 0; font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* Número principal */
.hero { padding: 22px 22px 16px; }
.hero-num {
  margin: 6px 0 0; font-size: clamp(54px, 16vw, 76px); line-height: .98; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
}
.hero-num .unit { font-size: .32em; font-weight: 700; letter-spacing: 0; margin-right: .16em; vertical-align: 1.1em; color: var(--muted); }
.hero-sub { margin: 8px 0 0; font-size: 15.5px; color: var(--muted); font-weight: 500; }
.store .fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hero-sub b { color: var(--ink); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
/* Objetivo da campanha: selo em forma de etiqueta, com o furinho */
.rank .tag { position: relative; display: inline-block; margin-right: 6px; padding: 2px 8px 2px 13px; border-radius: 4px; font-size: 11px; font-weight: 800; vertical-align: 1px;
  background: var(--tint); color: var(--tint-ink); clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
.rank .tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 3.5px; height: 3.5px; margin-top: -1.75px; border-radius: 50%; background: var(--card); }
.hero-delta { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* Variação: pílula colorida (verde = melhorou, vermelho = piorou) */
.chg {
  display: inline-block; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  padding: 3px 9px; border-radius: 980px;
}
.chg.good { color: var(--good); background: var(--good-bg); }
.chg.bad { color: var(--bad); background: var(--bad-bg); }
.chg.neutral { color: var(--muted); background: var(--neutral-bg); }

/* Gráficos (SVG) */
.plot { position: relative; margin: 16px 0 0; touch-action: pan-y; }
.plot svg { display: block; width: 100%; overflow: visible; }
.plot .grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.plot .grid text, .plot .xlab { fill: var(--faint); font: 600 10.5px var(--sans); font-variant-numeric: tabular-nums; }
.plot .cur { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.plot .prev { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; opacity: .8; }
.plot .cross { stroke: var(--faint); stroke-width: 1; opacity: .6; }
.plot .dot { fill: var(--chart); stroke: var(--card); stroke-width: 2; }
.plot .dot.p { fill: var(--faint); }
/* O ponto da etiqueta no fim da linha (no cartão-destaque, ele pulsa) */
.plot .end { fill: var(--chart); stroke: var(--card); stroke-width: 2.5; }
.plot .end-pulse { display: none; fill: var(--chart); transform-box: fill-box; transform-origin: center; }
/* Mudança nas campanhas ("O que mudamos"): tracejado no dia, com o texto ao passar o mouse */
.plot .mark line { stroke: var(--faint); stroke-width: 1.25; stroke-dasharray: 4 3; }
.plot .mark circle { fill: var(--card); stroke: var(--faint); stroke-width: 1.5; }
.legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 0; border-top: 2.5px solid var(--chart); border-radius: 2px; }
.legend i.p { border-top: 1.5px dashed var(--faint); }
.tip {
  position: absolute; top: 0; pointer-events: none; z-index: 5;
  background: var(--tip-bg); color: var(--tip-ink);
  font-size: 12px; line-height: 1.45; padding: 7px 10px; border-radius: 10px;
  white-space: nowrap; transform: translate(-50%, calc(-100% - 8px));
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35);
}

/* ---------- Cartão-destaque: a etiqueta verde-noite ---------- */
.hero.lead {
  position: relative; overflow: hidden; color: var(--hero-ink); box-shadow: none; border-radius: 28px;
  background: radial-gradient(110% 80% at 100% 0%, var(--glow), transparent 62%), radial-gradient(80% 60% at 0% 100%, var(--glow-2), transparent 70%),
    linear-gradient(165deg, var(--hero), var(--hero-2));
  --chart: var(--ember-light); --card: var(--hero); --line: var(--hero-line); --faint: var(--hero-muted);
  --tip-bg: #FFFFFF; --tip-ink: #0E1A14;
}
.hero.lead .label, .hero.lead .hero-sub, .hero.lead .hero-delta, .hero.lead .fine, .hero.lead .legend, .hero.lead .hero-num .unit { color: var(--hero-muted); }
.hero.lead .hero-sub b, .hero.lead .hero-parts .keys .l, .hero.lead .hero-parts .keys .v { color: var(--hero-ink); }
.hero.lead .chg.good { color: var(--hp-good); background: var(--hp-good-bg); }
.hero.lead .chg.bad { color: var(--hp-bad); background: var(--hp-bad-bg); }
.hero.lead .chg.neutral { color: var(--hero-ink); background: var(--hero-chip); }
.hero.lead .plot .prev { stroke: rgba(255, 255, 255, .38); opacity: 1; }
.hero.lead .legend i.p { border-top-color: rgba(255, 255, 255, .45); }
.hero.lead .plot .end-pulse { display: block; animation: tag-ping 2.4s var(--ease) infinite; }
.hero.lead .hero-parts { border-top-color: var(--hero-line); }
.hero.lead .label, .hero.lead .hero-num { padding-right: 34px; }
/* O furo da etiqueta: um círculo da cor do fundo da página, com um anel menta que pulsa */
.eyelet { position: absolute; top: 24px; right: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px rgba(224, 115, 79, .4); }
.eyelet::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--ember-light); animation: tag-ping-ring 2.4s var(--ease) infinite; }
@keyframes tag-ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes tag-ping-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.3); opacity: 0; } }
.r.is-pdf .eyelet::after, .r.is-pdf .plot .end-pulse { display: none; }
/* Segundo destaque (anúncios, quando há o total da loja): cartão tingido */
.hero.tint { background: var(--tint); box-shadow: none; }
.hero.tint .label { color: var(--tint-ink); }
.tip b { font-weight: 600; }
.tip .t { opacity: .7; }

/* Análise */
.note-block .note {
  margin: 0; padding: 16px 18px; outline: none; white-space: pre-wrap;
  font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink);
}
.note:empty::before { content: attr(data-placeholder); color: var(--faint); }
.note:focus { box-shadow: 0 0 0 2px var(--accent) inset; }
.note-status { font-size: 12px; color: var(--faint); margin: 6px 4px 0; min-height: 16px; }

/* Destaques: grade de cartões */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 16px 16px 15px; min-width: 0; display: grid; align-content: start; gap: 4px; }
.tile .label { line-height: 1.3; min-height: 2.6em; }
.tile .v { margin: 0; font-size: clamp(21px, 6.2vw, 28px); line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile .d { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--faint); font-weight: 500; }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Canais */
.channel { padding-top: 36px; }
.channel-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; }
.channel-head h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; }
.channel-head .acct { margin-left: auto; min-width: 0; font-size: 13px; color: var(--muted); text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picon {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em;
}

/* Lista no estilo Ajustes do iPhone */
.list { margin: 0; padding: 0 16px; }
.list .row {
  display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.list .row:last-child { border-bottom: 0; }
.list dt { font-size: 15px; color: var(--ink); }
.list dd { margin: 0; }
.list .v { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; }
.list .v small { font-size: 11.5px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.list .d { text-align: right; }
.muted-inline { color: var(--faint); font-size: 13px; }

/* Gráfico por canal */
.chart-card { padding: 14px 16px 16px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px 4px; padding: 0 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font: 500 13px var(--sans); cursor: pointer;
  padding: 6px 12px; border-radius: 980px; border: 0;
  background: var(--card-2); color: var(--ink-2);
}
.chip { font-weight: 600; transition: background-color .25s, color .25s; }
.chip[aria-pressed="true"] { background: linear-gradient(160deg, var(--hero), var(--hero-2)); color: #FFFFFF; }
.chart-title { margin: 10px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Barra dividida (participação) + legenda */
.card:has(> .split) { padding: 16px; }
.split { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; }
.split i { display: block; min-width: 3px; }
.keys { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.keys li { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 8px; font-size: 14px; }
.keys li > i { width: 10px; height: 10px; border-radius: 3px; }
.keys .l { color: var(--ink); }
.keys .v { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.keys .s { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.mini-title { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Barras horizontais (idade, cidades) */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(64px, 46%) 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.bars .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .track { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.bars .track i { display: block; height: 100%; border-radius: 4px; background: var(--chart); }
.bars .s { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Funil */
.funnel { list-style: none; margin: 0; padding: 14px 16px; }
.funnel .step { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.funnel .fl { font-size: 15px; }
.funnel .fv { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.funnel .fbar { grid-column: 1 / -1; height: 10px; margin-top: 7px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.funnel .fbar i { display: block; height: 100%; border-radius: 5px; background: var(--chart); opacity: .85; }
.funnel .step:last-child .fbar i { background: linear-gradient(90deg, var(--brand), var(--mint)); opacity: 1; }
.funnel .rate { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.funnel .rate::before { content: ""; width: 1.5px; height: 14px; margin-right: 4px; background: var(--line); }
.funnel .rate span { font-weight: 400; color: var(--muted); }

/* Listas ranqueadas (campanhas, páginas, origem do tráfego) */
.rank { list-style: none; margin: 0; padding: 0 16px; }
.rank li { padding: 12px 0 13px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.rank li:last-child { border-bottom: 0; }
.rank .name { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.rank .pv { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; letter-spacing: -0.01em; }
.rank .detail { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank .bar { grid-column: 1 / -1; height: 6px; background: var(--card-2); margin-top: 9px; border-radius: 3px; overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: var(--chart); border-radius: 3px; }
.rank li.more { display: block; font-size: 13px; color: var(--muted); }

/* Conteúdos e anúncios com miniatura */
.media { list-style: none; margin: 0; padding: 0 16px; }
.media li { border-bottom: 1px solid var(--line); }
.media li:last-child { border-bottom: 0; }
.media li, .media li > a, .media li > div { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 12px 0; color: inherit; text-decoration: none; }
.media li > a, .media li > div { padding: 0; grid-column: 1 / -1; }
.media .thumb {
  width: 60px; height: 75px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: var(--tint);
}
.media .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .thumb i { font-style: normal; color: var(--tint-ink); font-size: 14px; font-weight: 800; }
.media .meta { display: grid; gap: 3px; min-width: 0; align-content: center; }
.media .kind { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--faint); }
.media .cap { font-size: 14.5px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.media .st { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.media a:hover .cap { text-decoration: underline; text-underline-offset: 2px; }

details.all { margin-top: 12px; }
details.all summary {
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--brand-text);
  padding: 8px 4px; display: inline-flex; align-items: center; gap: 6px;
}
details.all summary::-webkit-details-marker { display: none; }
details.all summary::after { content: "›"; font-size: 18px; line-height: 1; transition: transform .2s; }
details.all[open] summary::after { transform: rotate(90deg); }

.nodata { padding: 18px; color: var(--muted); font-size: 14.5px; }
.nodata span { font-size: 13px; }

/* Rodapé */
.colophon { margin-top: 44px; padding: 18px 4px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); display: grid; gap: 6px; }
.colophon p { margin: 0; }
.colophon .by { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 13.5px; margin-bottom: 4px; }
.colophon .by .tag-logo { width: 30px; height: 20px; }
.colophon .by b { color: var(--ink); font-weight: 800; }

.empty-state { padding: 80px 0; text-align: center; color: var(--muted); }

@media (min-width: 720px) {
  .r { --gutter: 24px; }
  .masthead { padding-top: 44px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- Modo PDF (celular, página contínua) e impressão ---------- */
.r.is-pdf .sheet { max-width: none; width: 430px; margin: 0; padding-bottom: 28px; box-sizing: border-box; }
.r.is-pdf .toolbar, .r.is-pdf .chips, .r.is-pdf details.all, .r.is-pdf .note-status, .r.is-pdf .shortcuts, .r.is-pdf .det-card .open { display: none !important; }
/* No PDF a vitrine vira grade (não dá para deslizar no papel) e cada plataforma já vem aberta */
.r.is-pdf .ads-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; overflow: visible; }
.r.is-pdf .ad { max-width: none; }
.r.is-pdf .ad-body { padding: 10px 11px 12px; }
.r.is-pdf .ad-name { font-size: 13.5px; }
.r.is-pdf .ad-nums { font-size: 12px; }
/* No PDF nada é cortado com "…": nomes de campanhas, anúncios, contas e cidades aparecem inteiros */
.r.is-pdf .rank .name, .r.is-pdf .media.ads .cap { display: block; -webkit-line-clamp: none; overflow: visible; }
.r.is-pdf .sum-head .a, .r.is-pdf .channel-head .acct, .r.is-pdf .bars .l { white-space: normal; overflow: visible; text-overflow: clip; }
.r.is-pdf .chart-card .chart-title:not(:first-child) { margin-top: 18px; }
.r.is-pdf .chart-card .plot { margin-top: 8px; }
/* Relatório muito longo (várias páginas): nenhum bloco é cortado ao meio */
.r.is-pdf #report > * { break-inside: avoid; }
.r.is-pdf .note-block.is-empty { display: none; }
.r.is-pdf .tiles { grid-template-columns: 1fr 1fr; }
.r.is-pdf .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media print {
  body.r { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .toolbar, .chips, .note-status, details.all > summary, .shortcuts, .info, .rename { display: none !important; }
  .info-pop[hidden] { display: block; }
  .note-block.is-empty { display: none; }
  .card, .tile, .list .row, .rank li, .media li { break-inside: avoid; }
}

/* Composição dos leads no cartão do número principal */
.hero-parts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero-parts .keys .l small { display: block; font-size: 12px; color: var(--faint); }
.hero-parts .keys .v { color: var(--ink); font-weight: 600; font-size: 14px; }

/* Totais logo abaixo do número principal */
.block.totals { margin-top: 10px; }

/* Cada plataforma: cartão com os 3 números principais; os detalhes abrem com um toque */
.sum-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sum-head .picon { width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; }
.sum-head .n { font-size: 15px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; }
.sum-head .a { min-width: 0; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-stats { margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
.sum-stats div { min-width: 0; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.sum-stats dt { font-size: 11.5px; color: var(--muted); line-height: 1.25; align-self: end; overflow-wrap: anywhere; hyphens: auto; }
.sum-stats dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-stats dd.c { margin-top: 4px; }
.sum-stats dd.c .chg { font-size: 11px; padding: 1px 6px; }
.channel { padding-top: 10px; }
.det-card { display: block; padding: 14px 16px 15px; }
.det > summary { list-style: none; cursor: pointer; }
.det > summary::-webkit-details-marker { display: none; }
.det-card .open { margin-left: auto; flex: none; padding-left: 8px; font-size: 13px; font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.det-card .open::after { content: " ›"; display: inline-block; transition: transform .2s; }
.det[open] > summary .open { font-size: 0; }
.det[open] > summary .open::after { font-size: 18px; line-height: 1; transform: rotate(90deg); }
.det > summary:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.det-body { padding: 4px 0 18px; }
.det-body > .card:first-child, .det-body > .cov-note:first-child { margin-top: 10px; }
.det-msg { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.det-msg span { font-size: 13px; }
.det-card.unknown { background: var(--warn-bg); box-shadow: none; }
.det-card.unknown .det-msg { color: var(--ink-2); }

/* Divisor antes dos detalhes de cada plataforma */
.part { margin: 46px 4px 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 23px; font-weight: 800; letter-spacing: -0.035em; }
.part + .channel { padding-top: 14px; }

/* Topo limpo (link online): período, "atualizado às" e PDF em selos, logo abaixo do nome */
.client-text { min-width: 0; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.mchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; box-sizing: border-box;
  padding: 6px 11px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow);
  font: 700 13px var(--sans); color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
a.mchip { color: var(--brand-text); }
.mchip.live { background: var(--neutral-bg); box-shadow: none; color: var(--muted); font-weight: 600; }
.mchip.live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4DA463; }
.mchip.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4DA463; animation: tag-ping 2.4s var(--ease) infinite; }
.mchip.pick { position: relative; padding: 0; }
.mchip.pick select {
  appearance: none; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; max-width: 100%;
  padding: 6px 30px 6px 12px; border-radius: 999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* (i): a explicação fica escondida até o toque */
.info {
  flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: inline-grid; place-items: center; background: var(--neutral-bg); color: var(--muted);
  font: 800 11.5px/1 var(--sans); font-style: italic;
}
.info[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.sub .info { align-self: center; margin-left: 2px; }
.info-pop { margin: 8px 4px 10px; padding: 10px 13px; border-radius: 14px; background: var(--card-2); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.masthead .info-pop { margin: 12px 0 0; }

/* Frase de resumo (montada por regras a partir dos números) */
.verdict { margin: 0 0 6px; padding: 15px 17px; border-radius: 18px; background: var(--tint); color: var(--tint-ink);
  font-size: 15.5px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; text-wrap: pretty; }
.verdict b { color: var(--ink); font-weight: 800; }

/* Atalhos fixos no alto (link online) */
.shortcuts {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 8px calc(-1 * var(--gutter)) 0; padding: 9px var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(180%) blur(16px);
}
.shortcuts::-webkit-scrollbar { display: none; }
.shortcuts button {
  flex: none; border: 0; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  background: var(--card-2); color: var(--ink-2); font: 700 13px var(--sans); transition: background-color .25s, color .25s;
}
.shortcuts button.on { background: linear-gradient(160deg, var(--hero), var(--hero-2)); color: #FFFFFF; }
.r.is-static [id^="s-"] { scroll-margin-top: 64px; }

/* Mini-gráfico das 8 semanas nos destaques */
.spark { display: block; width: 100%; height: 30px; margin-top: 8px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--chart); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark path { stroke: var(--chart); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark path.solo { stroke-width: 3.5; }
.spark path.end { stroke-width: 6.5; }
.spark-cap { font-size: 11px; color: var(--faint); font-weight: 500; }

/* Dias da semana */
.week { padding: 15px 16px 14px; }
.insight { margin: 0 0 14px; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.insight b { color: var(--brand-text); font-weight: 800; }
.wbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 108px; }
.wbars div { display: grid; justify-items: center; gap: 4px; align-self: end; min-width: 0; }
.wbars i { display: block; width: 100%; max-width: 44px; border-radius: 7px 7px 3px 3px; background: var(--card-2); }
.wbars i.top { background: linear-gradient(180deg, var(--mint), var(--brand)); }
.wbars span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wbars em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.week .fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Vitrine de anúncios: desliza para o lado */
.ads-rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
}
.ad { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; }
.ad-img { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--tint); overflow: hidden; }
.ad-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-img i { font-style: normal; font-size: 14px; font-weight: 800; color: var(--tint-ink); }
.ad-body { padding: 12px 14px 14px; display: grid; gap: 3px; align-content: start; }
.ad-name { font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; }
.ad-raw { font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }
.ad-nums { margin-top: 3px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.45; }
.best { justify-self: start; margin-bottom: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--good); background: var(--good-bg); }
/* Programa: dar o nome que o cliente lê */
.rename { justify-self: start; margin-top: 6px; padding: 3px 10px; border: 1px dashed var(--faint); border-radius: 999px; background: transparent;
  color: var(--muted); font: 600 12px var(--sans); cursor: pointer; }
.rename:hover { color: var(--ink); border-color: var(--ink-2); }
.rank .rename { grid-column: 1 / -1; margin-top: 4px; }
.rank .raw { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }

.r.is-static .note-block.is-empty, .r.is-static .note-status { display: none; }

/* O que mudamos nas campanhas (diário de decisões, só o que foi marcado para o cliente) */
.changes { list-style: none; margin: 0; padding: 4px 16px; }
.changes li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.changes li:last-child { border-bottom: 0; }
.ch-day { padding-top: 2px; font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.ch-what { margin: 0; font-size: 15px; line-height: 1.4; }
.ch-kind { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  color: var(--muted); background: var(--neutral-bg); white-space: nowrap; vertical-align: 1px; }
.ch-why { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* Metas do mês */
.goals { list-style: none; margin: 0; padding: 4px 16px; }
.goals li { padding: 12px 0 13px; border-bottom: 1px solid var(--line); }
.goals li:last-child { border-bottom: 0; }
.g-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.g-label { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
/* Verba dos anúncios (no alto do relatório): blocos pequenos lado a lado, para os resultados totais seguirem à vista.
   O movimento chama a atenção sem gritar: com verba, um brilho passa pelo tanque e o ponto pulsa; acabando, respira
   em âmbar; acabou ou conta com problema, o bloco pulsa em vermelho; sem saldo informado, listras correm ("no ar"). */
.tanks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
/* Títulos mais juntos em volta da verba: os resultados totais sobem para a primeira tela do celular */
#s-verba { margin-top: 20px; margin-bottom: 8px; }
.tanks + .sub { margin-top: 22px; }
.tanks.n3 > :last-child { grid-column: auto; }
@media (max-width: 479px) { .tanks.n3 > :last-child { grid-column: 1 / -1; } }
.tank-card { position: relative; min-width: 0; padding: 10px 12px 9px; border-radius: 18px; }
.tank-card.tk-warn { background: var(--card); background: linear-gradient(170deg, color-mix(in srgb, var(--warn-bg) 80%, var(--card)), var(--card) 70%); }
.tank-card.tk-bad { background: var(--card); background: linear-gradient(170deg, color-mix(in srgb, var(--bad-bg) 80%, var(--card)), var(--card) 70%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 30%, transparent), var(--shadow); animation: t-alert 2.4s ease-in-out infinite; }
.t-where { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0; font-size: 11.5px; line-height: 1.3; font-weight: 700; color: var(--ink-2); letter-spacing: -0.01em; }
.t-where .picon { width: 16px; height: 16px; border-radius: 5px; font-size: 8.5px; flex: none; }
.t-where > span { min-width: 0; }
.t-where small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 600; color: var(--muted); }
.t-value { margin: 5px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.t-est { margin-right: 2px; font-weight: 700; color: var(--muted); }
.t-word { margin: 5px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.tk-problem .t-word { color: var(--bad); font-size: 15px; }
/* O tanque: cheio com 30 dias ou mais */
.tank { position: relative; height: 6px; margin-top: 7px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.tank i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: inherit; background: var(--muted); overflow: hidden; }
.tk-ok .tank i { background: linear-gradient(90deg, var(--brand), var(--mint)); }
.tk-ok .tank i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .7) 50%, transparent 85%); animation: t-sheen 3.8s ease-in-out 1.6s infinite; }
.tk-warn .tank i { background: var(--warn-bar); animation: t-breathe 2.2s ease-in-out infinite; }
.tk-bad .tank i { background: var(--bad); }
.tk-empty .tank, .tk-problem .tank { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 45%, transparent); animation: t-empty 1.8s ease-in-out infinite; }
.tk-live .tank i { background-color: color-mix(in srgb, var(--good) 20%, transparent); background-size: 12px 12px; animation: t-flow .9s linear infinite;
  background-image: linear-gradient(-45deg, color-mix(in srgb, var(--good) 45%, transparent) 25%, transparent 25%, transparent 50%,
    color-mix(in srgb, var(--good) 45%, transparent) 50%, color-mix(in srgb, var(--good) 45%, transparent) 75%, transparent 75%); }
.tk-auto .tank i { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 40%, transparent), color-mix(in srgb, var(--mint) 55%, transparent)); }
/* A linha de baixo: ponto que pulsa + para quantos dias dá */
.t-foot { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.t-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: 0; }
.tk-ok .t-foot, .tk-live .t-foot { color: var(--good); }
.tk-ok .t-dot::after, .tk-live .t-dot::after { animation: tag-ping 2.4s var(--ease) infinite; }
.tk-warn .t-foot { color: var(--warn); }
.tk-warn .t-dot { animation: t-breathe 1.8s ease-in-out infinite; }
.tk-bad .t-foot { color: var(--bad); }
.tk-bad .t-dot { animation: t-blink 1.2s ease-in-out infinite; }
.tk-bad .t-dot::after { animation: tag-ping 1.6s var(--ease) infinite; }
.tk-auto .t-foot { color: var(--brand-text); }
@keyframes t-sheen { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
@keyframes t-breathe { 50% { opacity: .55; } }
@keyframes t-blink { 50% { opacity: .25; } }
@keyframes t-flow { to { background-position: 12px 0; } }
@keyframes t-empty { 50% { background-color: var(--bad-bg); } }
@keyframes t-alert {
  0%, 100% { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 30%, transparent), var(--shadow); }
  50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 12%, transparent), var(--shadow); }
}
.r.is-pdf .tank-card, .r.is-pdf .tank-card *, .r.is-pdf .tank-card *::after { animation: none !important; }
@media print { .r .tank-card, .r .tank-card *, .r .tank-card *::after { animation: none !important; } }
/* Como as pessoas usam o site (Microsoft Clarity) */
.ux { padding: 14px 16px 12px; }
.ux-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 10px; }
.ux-stats div { padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.ux-stats dt { font-size: 12px; color: var(--muted); }
.ux-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ux-signals { list-style: none; margin: 0; padding: 0; }
.ux-signals li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ux-signals li:last-child { border-bottom: 0; }
.ux-signals small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.ux-v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ux-sub { margin: 12px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ux-pages { margin: 0; padding: 0; list-style: none; }
.ux-pages li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; }
.ux-pages span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux .fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* Situação da meta em selo: verde (batida/no caminho), âmbar (abaixo do ritmo), vermelho (estourou) */
.g-state { font-size: 11.5px; font-weight: 800; white-space: nowrap; color: var(--muted); background: var(--neutral-bg); padding: 4px 10px; border-radius: 999px; }
.goals li.good .g-state { color: var(--good); background: var(--good-bg); }
.goals li.bad .g-state { color: var(--bad); background: var(--bad-bg); }
.goals li.warn .g-state { color: var(--warn); background: var(--warn-bg); }
.g-bar { height: 10px; margin-top: 10px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: 5px; background: var(--muted); }
.goals li.good .g-bar i { background: linear-gradient(90deg, var(--brand), var(--mint)); }
.goals li.warn .g-bar i { background: var(--warn-bar); }
.goals li.bad .g-bar i { background: var(--bad); }
.g-line { margin: 7px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Análise: botão de rascunho automático */
.note-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.note-tools .note-status { margin: 0 4px; }
.note-tools button { font: 700 13px var(--sans); color: var(--brand-text); background: transparent; border: 0; padding: 4px 6px; cursor: pointer; }
.note-tools button:hover { text-decoration: underline; }
.r.is-pdf .note-tools, .r.is-static .note-tools { display: none; }

/* Três estados: dados incompletos, conta indisponível, conta lida só em parte */
.incomplete { margin: 0 0 14px; padding: 13px 16px; font-size: 14px; line-height: 1.5; color: var(--ink);
  background: var(--warn-bg); border-radius: 16px; box-shadow: none; }
.nodata.unknown { color: var(--ink-2); background: var(--warn-bg); box-shadow: none; }
/* Relatório de exemplo para prospects */
.demo-note { margin: 0 0 14px; padding: 13px 16px; font-size: 14px; line-height: 1.5; color: var(--ink);
  background: var(--tint); border-radius: 16px; box-shadow: none; }
.cov-note { margin: -2px 4px 10px; font-size: 13px; color: var(--warn); line-height: 1.45; }

/* Link ao vivo: o ponto pulsa no mesmo ritmo do furo da etiqueta */
.live-note { display: flex; gap: 11px; align-items: flex-start; margin: 14px 0 0; padding: 12px 15px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; color: var(--muted); }
.live-note b { color: var(--ink); font-weight: 800; }
.live-note i { position: relative; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #4DA463; }
.live-note i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #4DA463; animation: tag-ping 2.4s var(--ease) infinite; }

@media (prefers-reduced-motion: reduce) { .r *, .r *::before, .r *::after { animation: none !important; } }
@media print { .r .eyelet::after, .r .plot .end-pulse, .r .live-note i::after { display: none; } }
