/* Pulso do mercado (home): dominância, medo e ganância, capitalização total. Visual de terminal, com respiro. */
html body main section.mp-home{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
html body .mp{--mp-ink:#101114;--mp-muted:#5d6858;--mp-line:#e3e7df;--mp-soft:#f4f6f0;--mp-card:#fff;--mp-up:#15803d;--mp-down:#b91c1c;margin:0;display:grid;gap:18px;font-variant-numeric:tabular-nums}
html[data-theme=dark] body .mp{--mp-ink:#eef0ea;--mp-muted:#9aa39a;--mp-line:#262b31;--mp-soft:#1b1f25;--mp-card:#15181d;--mp-up:#4ade80;--mp-down:#f87171}
html body .mp-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
html body .mp-kicker{margin:0 0 6px;font-size:11.5px!important;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--mp-muted)}
html body .mp-top h2{margin:0;font-size:clamp(24px,2.4vw,30px)!important;letter-spacing:-.6px;line-height:1.1;color:var(--mp-ink)}
html body .mp-live{display:inline-flex;align-items:center;gap:8px;margin:0;padding:7px 12px;border:1px solid var(--mp-line);border-radius:999px;background:var(--mp-card);font-size:12.5px;font-weight:600;color:var(--mp-muted)}
html body .mp-live-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px #22c55e33}
html body .mp-live.is-off .mp-live-dot{background:#9aa3ad;box-shadow:none}
html body .mp-grid-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
html body .mp-card{background:var(--mp-card);border:1px solid var(--mp-line);border-radius:16px;padding:20px 22px;display:flex;flex-direction:column;gap:14px;min-width:0;color:var(--mp-ink)}
html body .mp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px}
html body .mp-head h3{margin:0;font-size:12px!important;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--mp-muted)}
html body .mp-badge{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#eef6d8;color:#3f6212}
html body .mp-badge.is-down{background:#fdecec;color:#b91c1c}html body .mp-badge.is-mid{background:#fef6d8;color:#8a6200}
html[data-theme=dark] body .mp-badge{background:#1f2a12;color:#bef264}html[data-theme=dark] body .mp-badge.is-down{background:#2a1515;color:#fca5a5}html[data-theme=dark] body .mp-badge.is-mid{background:#2a2412;color:#fde68a}
html body .mp-hero{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
html body .mp-hero strong{font-size:32px;font-weight:800;letter-spacing:-1px;line-height:1}
html body .mp-chg{font-weight:700;font-size:14px}
html body .mp .is-up{color:var(--mp-up)!important}html body .mp .is-down{color:var(--mp-down)!important}
html body .mp-bar{display:flex;height:10px;border-radius:99px;overflow:hidden;background:var(--mp-line);gap:2px}
html body .mp-bar i{display:block;height:100%}
html body .mp-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:8px;vertical-align:1px}
html body .mp-btc{background:#f7931a}html body .mp-eth{background:#627eea}html body .mp-oth{background:#9aa3ad}
html body .mp-table{width:100%;border-collapse:collapse;font-size:13.5px}
html body .mp-table th{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--mp-muted);text-align:right;padding:0 0 8px;border-bottom:1px solid var(--mp-line)}
html body .mp-table th:first-child,html body .mp-table td:first-child{text-align:left}
html body .mp-table td{padding:9px 0;text-align:right;border-bottom:1px solid var(--mp-line);white-space:nowrap}
html body .mp-table tr:last-child td{border-bottom:0}
html body .mp-table td:first-child{font-weight:600}
html body .mp-table td:last-child{font-weight:700}
html body .mp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
html body .mp-stat{background:var(--mp-soft);border:1px solid var(--mp-line);border-radius:10px;padding:9px 11px;display:grid;gap:3px;min-width:0}
html body .mp-stat span{font-size:11px;font-weight:600;color:var(--mp-muted);text-transform:uppercase;letter-spacing:.4px}
html body .mp-stat b{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .mp-gauge{width:100%;max-width:250px;margin:0 auto;display:block;color:var(--mp-ink)}
html body .mp-gauge-v{font:800 42px Inter,Arial,sans-serif;fill:currentColor}
html body .mp-strip{display:flex;align-items:flex-end;gap:2px;height:42px;padding:0 1px}
html body .mp-strip i{flex:1;min-width:2px;border-radius:2px 2px 0 0;opacity:.85}
html body .mp-strip i:last-child{opacity:1;outline:2px solid var(--mp-ink);outline-offset:1px}
html body .mp-strip-legend{display:flex;justify-content:space-between;font-size:11px;color:var(--mp-muted);margin-top:-8px}
html body .mp-seg{display:flex;gap:2px;background:var(--mp-soft);border:1px solid var(--mp-line);border-radius:9px;padding:3px}
html body .mp-seg button{min-height:28px;padding:3px 12px;border:0;border-radius:7px;font:700 12.5px Inter,Arial,sans-serif;cursor:pointer;color:var(--mp-ink)!important;background:transparent!important}
html body .mp-seg button[aria-pressed=true]{background:#101114!important;color:#dfff19!important}
html[data-theme=dark] body .mp-seg button[aria-pressed=true]{background:#dfff19!important;color:#101114!important}
html body .mp-chart{width:100%;height:auto;display:block}
html body .mp-grid{stroke:var(--mp-line);stroke-dasharray:3 4}
html body .mp-base{stroke:#9aa3ad;stroke-dasharray:2 4;opacity:.7}
html body .mp-ax{font:11px Inter,Arial,sans-serif;fill:var(--mp-muted)}
html body .mp-line{fill:none;stroke-width:2.2;stroke-linejoin:round}
html body .mp-line.is-up{stroke:#16a34a}html body .mp-line.is-down{stroke:#dc2626}
html body .mp-last.is-up{fill:#16a34a}html body .mp-last.is-down{fill:#dc2626}
html body .mp-vbar{fill:#9aa3ad;opacity:.45}
html body .mp-period{margin:-6px 0 0;font-size:13px;color:var(--mp-muted)}html body .mp-period b{margin:0 2px}
html body .mp-empty{flex:1;display:grid;place-content:center;gap:6px;text-align:center;min-height:150px;border:1px dashed var(--mp-line);border-radius:12px;padding:16px;font-size:13px;color:var(--mp-muted)}
html body .mp-empty b{color:var(--mp-ink);font-size:14px}
html body .mp-note{margin:auto 0 0;padding-top:12px;border-top:1px solid var(--mp-line);font-size:12px!important;line-height:1.5!important;color:var(--mp-muted)}
@media(max-width:1100px){html body .mp-grid-cards{grid-template-columns:1fr 1fr}html body .mp-grid-cards>.mp-card:last-child{grid-column:1/-1}}
@media(max-width:700px){html body .mp-grid-cards{grid-template-columns:1fr}html body .mp-card{padding:18px}html body .mp-hero strong{font-size:28px}html body .mp-top{align-items:flex-start}}
html body .mp-card>.mp-stats:has(.mp-stat:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
html body .mp-card>.mp-stats:has(.mp-stat:nth-child(4)) .mp-stat{padding:8px 9px}
@media(max-width:1280px) and (min-width:1101px){html body .mp-card>.mp-stats:has(.mp-stat:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Ao vivo: ponto pulsando, lampejo verde/vermelho quando o número muda e o medidor de sentimento "respirando" (o valor do índice é diário e não muda). */
html body .mp-live{color:var(--mp-ink)}
html body .mp-live-dot{animation:mpPulse 1.6s ease-out infinite}
@keyframes mpPulse{0%{box-shadow:0 0 0 0 #22c55e88}70%{box-shadow:0 0 0 8px #22c55e00}100%{box-shadow:0 0 0 0 #22c55e00}}
html body .mp-live.is-off .mp-live-dot{animation:none}
html body .mp-flash-up{animation:mpUp .9s ease-out}html body .mp-flash-down{animation:mpDown .9s ease-out}
@keyframes mpUp{0%{background:#22c55e33;border-radius:4px}100%{background:transparent}}
@keyframes mpDown{0%{background:#ef444433;border-radius:4px}100%{background:transparent}}
html body .mp-bar i{transition:width .8s ease}
html body .mp-knob-glow{opacity:.25;transform-box:fill-box;transform-origin:center;animation:mpKnob 2.4s ease-in-out infinite}
@keyframes mpKnob{0%,100%{transform:scale(.85);opacity:.18}50%{transform:scale(1.25);opacity:.38}}
@media (prefers-reduced-motion:reduce){html body .mp-live-dot,html body .mp-knob-glow,html body .mp-flash-up,html body .mp-flash-down{animation:none}}
html body .mp-gap{fill:var(--mp-soft);opacity:.9}
html body .mp-gap-t{font:600 11.5px Inter,Arial,sans-serif;fill:var(--mp-muted)}
/* Medidor de sentimento: um pulso a cada 6 segundos */
html body .mp-knob-glow{animation:mpKnob6 6s ease-in-out infinite!important}
@keyframes mpKnob6{0%,100%{transform:scale(.85);opacity:.15}6%{transform:scale(1.45);opacity:.45}14%{transform:scale(.9);opacity:.2}}
/* Celular: a tabela de dominância vira linhas empilhadas (ativo e variação em cima, agora e 24h atrás embaixo), sem estourar. */
@media(max-width:560px){
html body .mp-table,html body .mp-table tbody{display:block;width:100%}
html body .mp-table thead{display:none}
html body .mp-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"a v" "n p";column-gap:12px;row-gap:4px;padding:10px 0;border-bottom:1px solid var(--mp-line)}
html body .mp-table tr:last-child{border-bottom:0}
html body .mp-table td{display:block;padding:0!important;border:0!important;white-space:nowrap;text-align:left}
html body .mp-table td:nth-child(1){grid-area:a;font-size:14px}
html body .mp-table td:nth-child(4){grid-area:v;text-align:right;font-size:14px}
html body .mp-table td:nth-child(2){grid-area:n;font-size:12.5px;color:var(--mp-muted)}
html body .mp-table td:nth-child(3){grid-area:p;text-align:right;font-size:12.5px;color:var(--mp-muted)}
html body .mp-table td:nth-child(2)::before{content:"Agora ";font-weight:500}
html body .mp-table td:nth-child(3)::before{content:"24h atrás ";font-weight:500}
html body .mp-table td:nth-child(2),html body .mp-table td:nth-child(3){font-weight:600}
}
/* Celular: cabeçalhos quebram linha, abas menores e números inteiros (sem reticências). */
@media(max-width:560px){
html body .mp-head{flex-wrap:wrap;row-gap:10px}
html body .mp-head h3{flex:1 1 140px;min-width:0}
html body .mp-seg{flex:0 0 auto}
html body .mp-seg button{padding:3px 10px;font-size:12px}
html body .mp-stats,html body .mp-card>.mp-stats:has(.mp-stat:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
html body .mp-stat{padding:9px 10px}
html body .mp-stat span{font-size:10px;letter-spacing:.2px;line-height:1.3;overflow-wrap:anywhere}
html body .mp-stat b{font-size:14px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
html body .mp-period{line-height:1.5}
}
