/* Modal de detalhe compartilhado (Resultados, Cadeiras). Carregar junto com detalhe-modal.js. */
/* ═══ Modal de detalhe ═══════════════════════════════════════════════
   Um painel central com cabeçalho fixo, corpo rolável e cartões de
   dados. Regra de ouro: o dado ocupa o espaço, o texto de apoio é
   discreto e aparece uma vez só. */
.md-fundo {
    position: fixed; inset: 0; background: rgba(16, 22, 28, .5);
    z-index: 1200; opacity: 0; transition: opacity .18s ease;
}
.md-fundo.on { opacity: 1; }

.md {
    position: fixed; inset: 0; margin: auto;
    width: min(1360px, calc(100vw - 40px));
    height: min(900px, calc(100vh - 40px));
    background: #fff; border-radius: 20px; z-index: 1201;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .26);
    opacity: 0; transform: scale(.98);
    transition: opacity .18s ease, transform .18s ease, width .2s ease, height .2s ease, border-radius .2s ease;
}
.md.on { opacity: 1; transform: scale(1); }
/* Tela cheia: ocupa a janela inteira, sem borda arredondada. */
.md.md-full { width: 100vw; height: 100vh; border-radius: 0; }

/* ── Cabeçalho ── */
.md-topo {
    flex: none; padding: 20px 26px 14px;
    border-bottom: 1px solid #E8EBEF;
    display: flex; align-items: flex-start; gap: 16px;
    background: linear-gradient(180deg, #FBFCFD 0%, #fff 100%);
    position: relative;
}
.md-topo::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
    background: linear-gradient(90deg, #0064E0, #47A5FA);
}
.md-topo-txt { min-width: 0; flex: 1; }
.md-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: #0064E0; display: block; margin-bottom: 5px;
}
.md-titulo {
    font-size: 26px; font-weight: 700; color: #14181D;
    line-height: 1.15; letter-spacing: -.02em; text-wrap: balance;
}
.md-sub {
    font-size: 13.5px; color: #667085; margin-top: 6px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.md-acoes { flex: none; display: flex; gap: 6px; align-items: center; }
.md-btn-ico {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid #E4E7EC;
    background: #fff; color: #475467; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.md-btn-ico:hover { background: #F2F4F7; color: #14181D; }
.md-btn-ico:active { transform: scale(.94); }
.md-btn-ico.on { background: #E8F3FF; border-color: #B9D8FB; color: #0064E0; }
#md-all.on svg { transform: rotate(180deg); }
.md-btn-ico:focus-visible { outline: 2px solid #0064E0; outline-offset: 2px; }
.md-x:hover { background: #FDECEF; color: #C4314B; border-color: #F5C2CB; }

/* ── Trilha ── */
.md-trilha {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    font-size: 12px; color: #8A9099; margin-bottom: 7px;
}
.md-trilha button {
    border: 0; background: transparent; padding: 2px 5px; border-radius: 5px;
    font: inherit; font-weight: 600; color: #0064E0; cursor: pointer;
}
.md-trilha button:hover { background: #EAF2FD; }
.md-trilha-atual { font-weight: 600; color: #475467; }

/* ── Atalhos das seções (chips) ── */
.md-nav { flex: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0 26px; background: #fff; }
.md-nav:not(:empty) { padding: 10px 26px; border-bottom: 1px solid #F2F4F7; }
.md-nav button {
    border: 1px solid #E4E7EC; background: #F7F8FA; color: #344054; border-radius: 100px;
    padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.md-nav button:hover { background: #E8F3FF; color: #0064E0; border-color: #B9D8FB; }

/* ── Corpo ── */
.md-corpo { flex: 1; overflow-y: auto; padding: 22px 26px 48px; background: #FAFBFC; scroll-behavior: smooth; }

/* ── Números de destaque ── */
.md-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.md-num { background: #fff; border: 1px solid #E8EBEF; border-radius: 14px; padding: 14px 16px 14px 18px; position: relative; overflow: hidden; }
.md-num::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #CED0D4; }
.md-num-g::before { background: #1A7F37; } .md-num-p::before { background: #C4314B; } .md-num-e::before { background: #B45309; } .md-num-t::before { background: #0064E0; }
.md-num b {
    display: block; font-size: 27px; font-weight: 700; color: #14181D;
    line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.md-num span { display: block; font-size: 12px; color: #667085; margin-top: 4px; line-height: 1.35; }

/* ── Nota de contexto ── */
.md-nota {
    font-size: 13.5px; line-height: 1.6; color: #475467;
    background: #F7F8FA; border-radius: 12px; padding: 13px 16px; margin-bottom: 18px;
}
.md-nota b { color: #14181D; font-weight: 600; }
.md-nota code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

/* ── Legenda: uma linha, itens bem separados ── */
.md-legenda {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px 22px; margin-bottom: 20px;
    font-size: 12.5px; color: #667085;
}
.md-legenda i { font-style: normal; display: inline-flex; align-items: center; gap: 7px; }
.md-selo {
    width: 15px; height: 10px; border-radius: 3px;
    background: #E6F4EA; border: 1px solid #34A853; flex: none;
}

/* ── Grade de cartões ── */
.md-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 18px; }
/* Cartões de tamanhos diferentes não devem esticar até o mais alto. */
.md-grade { align-items: start; }
.md-card { border: 1px solid #E8EBEF; border-radius: 14px; padding: 14px 18px 12px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.md-card:not(.md-aberto) .md-extra { display: none; }

.md-ver-mais {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--accent, #0064E0);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.md-ver-mais:hover { background: rgba(0, 100, 224, 0.06); }

.md-card-tit {
    font-size: 13px; font-weight: 700; color: #344054;
    letter-spacing: .01em; display: flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none; border-radius: 8px; margin: -4px -6px 4px; padding: 4px 6px;
}
.md-card-tit:hover { background: #F7F8FA; }
.md-card-tit > span:first-child { flex: 1; min-width: 0; }
.md-card-resumo { font-style: normal; font-weight: 600; font-size: 12px; color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.md-card.md-fechado .md-card-corpo { display: none; }
.md-card.md-fechado { padding-bottom: 10px; }
.md-card.md-fechado .md-card-tit { margin-bottom: 0; }
.md-card-sub { font-size: 12px; color: #8A9099; margin-bottom: 12px; line-height: 1.45; }

/* ── Linha de dado ── */
.md-lin {
    display: grid;
    /* nome | barra | citações | % | dif — a contagem tem coluna própria:
       espremida ao lado do nome ela sumia e o nome cortava igual. */
    grid-template-columns: minmax(0, 1fr) 48px 44px 54px 44px;
    align-items: center; gap: 8px;
    padding: 8px 10px; margin: 0 -10px; border-radius: 8px;
}
.md-lin + .md-lin { border-top: 1px solid #F2F4F7; }
.md-lin.click { cursor: pointer; }
.md-lin.click:hover { background: #F7F8FA; }
.md-lin.top { background: #F3FAF5; }
.md-lin.top:hover { background: #E9F5ED; }

.md-nome {
    font-size: 14.5px; color: #14181D; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.md-lin.top .md-nome { font-weight: 600; color: #1A7F37; }
.md-lin.fraco .md-nome { color: #8A9099; }
.md-tri { color: #34A853; font-size: 9px; margin-right: 6px; vertical-align: 2px; }
/* "Ocultar absolutos" ligado: a coluna de citações sai da grade por
   completo — nada de cabeçalho sobre espaço vazio. */
body.sp-sem-absolutos .md-lin {
    grid-template-columns: minmax(0, 1fr) 48px 54px 44px;
}
@media (max-width: 620px) {
    body.sp-sem-absolutos .md-lin { grid-template-columns: minmax(0, 1fr) 52px 44px; }
}
.md-cab {
    padding-top: 0; padding-bottom: 6px; margin-bottom: 2px;
    border-bottom: 1px solid #E8EBEF; font-size: 10.5px;
    text-transform: uppercase; letter-spacing: .06em; color: #98A2B3;
}
.md-cab:hover { background: none; }
.md-cab .md-qtd, .md-cab .md-pct, .md-cab .md-dif {
    font-size: 10.5px; font-weight: 600; color: #98A2B3;
}
.md-qtd {
    color: #667085; font-size: 12.5px; font-weight: 500; text-align: right;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

.md-barra { height: 8px; background: #F2F4F7; border-radius: 99px; overflow: hidden; }
.md-barra i { display: block; height: 100%; background: #0064E0; border-radius: 99px; }
.md-lin.top .md-barra i { background: #34A853; }
.md-lin.fraco .md-barra i { background: #D0D5DD; }

.md-pct {
    text-align: right; font-size: 15px; font-weight: 600; color: #14181D;
    font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.md-lin.top .md-pct { color: #1A7F37; font-weight: 700; }
.md-lin.fraco .md-pct { color: #8A9099; font-weight: 500; }

.md-dif {
    text-align: right; font-size: 13px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.md-dif.sobe { color: #1A7F37; }
.md-dif.desce { color: #C4314B; }
.md-dif.igual { color: #98A2B3; }

/* ── Seção (Senado: 1ª e 2ª vaga) ── */
.md-sec { margin-top: 26px; }
.md-sec:first-child { margin-top: 0; }
.md-secao {
    font-size: 16px; font-weight: 700; color: #14181D;
    margin: 0 0 4px; padding: 8px 10px 9px; border-bottom: 2px solid #0064E0;
    display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
    border-radius: 10px 10px 0 0;
}
.md-secao:hover { background: #F2F6FC; }
.md-secao > span:not(.md-chev) { flex: 1; min-width: 0; }
.md-sec.md-fechado .md-sec-corpo { display: none; }
.md-sec.md-fechado .md-secao { border-bottom-color: #E4E7EC; color: #475467; }
/* seta do acordeão */
.md-chev { flex: none; width: 18px; height: 18px; border-radius: 6px; background: #EEF2F6; position: relative; transition: transform .18s ease; }
.md-chev::after { content: ''; position: absolute; left: 5px; top: 4px; width: 6px; height: 6px; border-right: 2px solid #475467; border-bottom: 2px solid #475467; transform: rotate(45deg); }
.md-secao .md-chev { order: -1; }
.md-card-tit .md-chev { width: 16px; height: 16px; }
.md-card-tit .md-chev::after { left: 4px; top: 3px; width: 5px; height: 5px; }
.md-sec.md-fechado > .md-secao .md-chev, .md-card.md-fechado > .md-card-tit .md-chev { transform: rotate(-90deg); }
.md-secao:focus-visible, .md-card-tit:focus-visible { outline: 2px solid #0064E0; outline-offset: 2px; }
.md-secao-sub { font-size: 13px; color: #667085; margin: 8px 0 16px; line-height: 1.5; }
.md-secao-sub b { color: #14181D; font-weight: 600; }

.md-vazio { text-align: center; color: #8A9099; font-size: 14px; padding: 34px 0; }

@media (max-width: 900px) {
    .md { width: 100vw; height: 100vh; border-radius: 0; }
    #md-full { display: none; }
    .md-grade { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    /* A barra é decoração; citações e % são dado. A barra sai primeiro. */
    .md-barra { display: none; }
    .md-lin { grid-template-columns: minmax(0, 1fr) 44px 52px 44px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .md, .md-fundo { transition: none; }
}

/* ── Cidades onde ganha / onde perde ── */
.md-grade-cid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.md-cid {
    display: grid; grid-template-columns: minmax(0, 1fr) 52px 54px 52px;
    align-items: center; gap: 8px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px;
}
.md-cid + .md-cid { border-top: 1px solid #F2F4F7; }
.md-cid.top { background: #F3FAF5; }
.md-cid-cab {
    padding-top: 0; padding-bottom: 6px; margin-bottom: 2px; border-bottom: 1px solid #E8EBEF;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #98A2B3;
}
.md-cid-cab .md-qtd, .md-cid-cab .md-pct, .md-cid-cab .md-dif { font-size: 10.5px; font-weight: 600; color: #98A2B3; }
.md-cid-esq { min-width: 0; }
.md-cid-nome { font-size: 14.5px; color: #14181D; font-weight: 600; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.md-cid.top .md-cid-nome { color: #1A7F37; }
.md-cid-nome small { font-weight: 500; color: #667085; font-size: 12px; }
.md-cid-pos { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: #98A2B3; font-weight: 600; }
.md-cid-info { font-size: 12px; color: #8A9099; margin-top: 2px; line-height: 1.4; }
.md-cid-info b { color: #344054; font-weight: 600; }
.md-cid-n { display: inline-block; background: #F2F4F7; color: #475467; border-radius: 100px; padding: 1px 9px; font-size: 12px; font-weight: 700; margin-left: 6px; }
body.sp-sem-absolutos .md-cid { grid-template-columns: minmax(0, 1fr) 54px 52px; }
@media (max-width: 620px) {
    .md-grade-cid { grid-template-columns: 1fr; }
    .md-cid { grid-template-columns: minmax(0, 1fr) 46px 52px 46px; gap: 6px; }
}

/* ── Tabelas de cidades (onde ganha / onde perde / empata) ── */
.md-card-tab { margin-top: 14px; padding-bottom: 8px; }
.md-t-wrap { overflow-x: auto; margin: 4px -6px 0; padding: 0 6px; }
.md-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.md-t th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #98A2B3; padding: 4px 14px 8px 0; border-bottom: 1px solid #E8EBEF; white-space: nowrap; }
.md-t td { padding: 7px 14px 7px 0; border-bottom: 1px solid #F2F4F7; vertical-align: middle; white-space: nowrap; }
.md-t th:last-child, .md-t td:last-child { padding-right: 0; }
.md-t tbody tr:last-child td { border-bottom: 0; }
.md-t tr.md-t-lin:hover td { background: #F7F8FA; }
.md-t .md-t-n { text-align: right; font-variant-numeric: tabular-nums; }
.md-t td.md-t-n { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; color: #475467; }
.md-t .md-t-pos { color: #98A2B3; font-size: 11.5px; width: 34px; }
.md-t .md-t-nome { font-weight: 600; color: #14181D; }
.md-t td.md-t-ele { color: #14181D; font-weight: 700; font-size: 13.5px; }
.md-t .md-t-rival { color: #475467; font-size: 13px; }
.md-t .md-t-rival span { color: #98A2B3; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; margin-left: 4px; }
.md-t td.md-t-pts { color: #0143B5; font-weight: 600; }
.md-t tr.md-t-peq td { color: #8A9099; }
.md-t tr.md-t-peq td.md-t-nome, .md-t tr.md-t-peq td.md-t-ele { color: #667085; font-weight: 500; }
.md-t-flag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A5A00; background: #FFF6E5; border-radius: 100px; padding: 1px 7px; margin-left: 8px; vertical-align: 1px; }
.md-t tfoot td { border-top: 2px solid #E8EBEF; border-bottom: 0; font-weight: 700; color: #14181D; background: #F7F8FA; }
.md-t .md-dif { display: inline-block; min-width: 46px; }
@media (max-width: 720px) {
    .md-t th:nth-child(3), .md-t td:nth-child(3), .md-t th:nth-child(9), .md-t td:nth-child(9) { display: none; }
}

/* ── Cor por situação: verde ganha, vermelho perde, âmbar empate, azul total ── */
.md-num-g { background: #E9F5ED; border-color: #CBE8D3; } .md-num-g b { color: #1A7F37; }
.md-num-p { background: #FDECEF; border-color: #F5C9D1; } .md-num-p b { color: #C4314B; }
.md-num-e { background: #FFF6E5; border-color: #F8E3B6; } .md-num-e b { color: #B45309; }
.md-num-t { background: #E8F3FF; border-color: #BFDBFB; } .md-num-t b { color: #0143B5; }
.md-num-c { background: #E3F6F3; border-color: #B5E4DC; } .md-num-c b { color: #0F766E; } .md-num-c::before { background: #2ABBA7; }
.md-num-r { background: #F1ECFE; border-color: #D9CCFB; } .md-num-r b { color: #5B3BC4; } .md-num-r::before { background: #6441D2; }
.md-num-n { background: #F7F8FA; } .md-num-n b { color: #1C2B33; }
/* card clicável: levanta no hover e mostra a seta */
.md-num-click { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.md-num-click:hover, .md-num-click:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, .10); outline: none; }
.md-num-click:active { transform: translateY(0); }
.md-num-seta { position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.7); opacity: .55; transition: opacity .15s; }
.md-num-seta::after { content: ''; position: absolute; left: 6px; top: 6px; width: 5px; height: 5px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); color: #475467; }
.md-num-click:hover .md-num-seta { opacity: 1; }
.md-num-click b { padding-right: 18px; }
/* destaque rápido quando um card manda rolar até uma tabela */
@keyframes md-piscar { 0% { box-shadow: 0 0 0 0 rgba(0, 100, 224, .45); } 100% { box-shadow: 0 0 0 14px rgba(0, 100, 224, 0); } }
.md-pisca { animation: md-piscar 1.4s ease-out 1; }

.md-card-tab { --cor: #0064E0; --cor-tint: #E8F3FF; --cor-tint2: #F4F8FE; border-color: var(--cor-tint); }
.md-tab-g { --cor: #1A7F37; --cor-tint: #E9F5ED; --cor-tint2: #F3FAF5; }
.md-tab-p { --cor: #C4314B; --cor-tint: #FDECEF; --cor-tint2: #FEF5F6; }
.md-tab-e { --cor: #B45309; --cor-tint: #FFF6E5; --cor-tint2: #FFFAF0; }
.md-card-tab .md-card-tit { color: var(--cor); font-size: 15px; }
.md-card-tab .md-cid-n { background: var(--cor); color: #fff; }
.md-card-tab .md-t thead th { background: var(--cor); color: #fff; border-bottom: 0; padding: 9px 14px 9px 8px; letter-spacing: .05em; }
.md-card-tab .md-t thead th:first-child { border-radius: 8px 0 0 0; padding-left: 10px; }
.md-card-tab .md-t thead th:last-child { border-radius: 0 8px 0 0; padding-right: 10px; }
.md-card-tab .md-t td { padding-left: 8px; }
.md-card-tab .md-t td:first-child { padding-left: 10px; }
.md-card-tab .md-t td:last-child { padding-right: 10px; }
/* colunas: eleitores e peso em azul claro, ele na cor da seção, pontos em azul */
.md-card-tab .md-t td:nth-child(3), .md-card-tab .md-t td:nth-child(4) { background: #F4F8FE; }
.md-card-tab .md-t td.md-t-ele { background: var(--cor-tint); color: var(--cor); }
.md-card-tab .md-t td:nth-child(8) { background: var(--cor-tint2); }
.md-card-tab .md-t td.md-t-pts { background: #E8F3FF; color: #0143B5; }
.md-card-tab .md-t tr.md-t-lin { cursor: pointer; }
.md-card-tab .md-t tr.md-t-lin:hover td, .md-card-tab .md-t tr.md-t-lin:focus-visible td { background: #EEF2F6; outline: none; }
.md-card-tab .md-t tr.md-t-lin:hover td.md-t-ele { background: var(--cor-tint); filter: brightness(.96); }
.md-t-seta { color: var(--cor); font-size: 11px; margin-right: 6px; }
.md-card-tab .md-t tfoot td { background: var(--cor-tint2); border-top: 2px solid var(--cor-tint); }
.md-card-tab .md-t tfoot td.md-t-pts { background: #E8F3FF; }

/* ── Botão "ocultar amostras pequenas" ── */
.md-secao-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.md-btn { border: 1px solid #CED0D4; background: #fff; color: #1C2B33; border-radius: 100px; padding: 6px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.md-btn:hover { background: #F1F4F7; }
.md-btn.on { background: #0064E0; border-color: #0064E0; color: #fff; }

.md-t-explica { font-size: 12.5px; color: #475467; background: var(--cor-tint2, #F7F8FA); border-left: 3px solid var(--cor, #0064E0); border-radius: 0 8px 8px 0; padding: 8px 12px; margin: 0 0 10px; line-height: 1.5; }
.md-t-explica b { color: var(--cor, #0064E0); font-weight: 700; }

/* ── Leitura rápida ── */
.md-leitura { background: #fff; border: 1px solid #E8EBEF; border-left: 4px solid #0064E0; border-radius: 12px; padding: 12px 16px 6px; margin-bottom: 20px; }
.md-leitura-tit { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0064E0; margin-bottom: 6px; }
.md-leitura ul { list-style: none; margin: 0; padding: 0; }
.md-leitura li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: #344054; padding: 5px 0; border-top: 1px solid #F2F4F7; }
.md-leitura li:first-child { border-top: 0; }
.md-leitura li b { color: #14181D; font-weight: 700; }
.md-lt-ico { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; position: relative; background: #EEF2F6; }
.md-lt-ico::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 6px; height: 6px; border-radius: 50%; background: #667085; }
.md-lt-bom .md-lt-ico { background: #E9F5ED; } .md-lt-bom .md-lt-ico::after { background: none; width: 0; height: 0; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #1A7F37; }
.md-lt-ruim .md-lt-ico { background: #FDECEF; } .md-lt-ruim .md-lt-ico::after { background: none; width: 0; height: 0; border-radius: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid #C4314B; }
.md-lt-neutro .md-lt-ico { background: #FFF6E5; } .md-lt-neutro .md-lt-ico::after { background: #B45309; }
.md-lt-info .md-lt-ico { background: #E8F3FF; } .md-lt-info .md-lt-ico::after { background: #0064E0; }

/* ── Carregando ── */
.md-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #D0D5DD; border-top-color: #0064E0; border-radius: 50%; margin-right: 8px; vertical-align: -3px; animation: md-gira .8s linear infinite; }
@keyframes md-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .md-spin { animation: none; } .md-chev { transition: none; } .md-corpo { scroll-behavior: auto; } }

/* ── Cartão de rejeição: o "líder" é o mais rejeitado, então vai de vermelho ── */
.md-card-neg { border-color: #F5C9D1; background: #FFFBFB; }
.md-card-neg .md-card-tit { color: #9F1239; }
.md-card-neg .md-card-resumo { color: #C4314B; }
.md-card-neg .md-lin.top { background: #FDECEF; }
.md-card-neg .md-lin.top:hover { background: #FBDDE3; }
.md-card-neg .md-lin.top .md-nome, .md-card-neg .md-lin.top .md-pct { color: #C4314B; }
.md-card-neg .md-tri { color: #C4314B; }
.md-card-neg .md-barra i { background: #E3A0AC; }
.md-card-neg .md-lin.top .md-barra i { background: #C4314B; }
.md-card-neg .md-lin.fraco .md-barra i { background: #D0D5DD; }
/* na rejeição, subir é ruim e descer é bom */
.md-card-neg .md-dif.sobe { color: #C4314B; }
.md-card-neg .md-dif.desce { color: #1A7F37; }
