/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #202124;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    margin: 8px auto 0;
    flex: 1;
}

/* ===== HERO (Logo + Busca) ===== */
.hero {
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* 16 + ~4px de entrelinha do subtítulo = 20px visuais até a busca,
       igual ao espaço entre a busca e o ranking. */
    margin-bottom: 16px;
}

.hero-tag {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 8px 14px;
    border-radius: 999px;
}

/* Espaços "visuais" de 20px entre os blocos: desconta a entrelinha do
   título (~3px) e do subtítulo (~4px), que somam ao margin. */
.logo h1 {
    margin: 17px 0 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #202124;
    letter-spacing: -0.5px;
}

.hero-destaque {
    color: #1a73e8;
}

.logo .subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: #5f6368;
    margin: 13px 0 0;
}

.logo .subtitle strong {
    color: #202124;
    font-weight: 600;
}

@media (max-width: 480px) {
    .logo h1 { font-size: 1.6rem; }
}

/* ===== SEARCH ===== */
.search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 16px;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.06);
}

.search-wrapper:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.12);
    border-color: #d2d5d9;
}

.search-wrapper:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 1px 8px rgba(26, 115, 232, 0.15);
}

.search-icon {
    color: #9aa0a6;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    padding: 14px 0;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: #202124;
}

#searchInput::placeholder {
    color: #9aa0a6;
}

/* Em telas pequenas, reduz a fonte do placeholder para caber o texto completo */
@media (max-width: 480px) {
    #searchInput {
        font-size: 0.9rem;
    }
    #searchInput::placeholder {
        font-size: 0.78rem;
    }
}

.clear-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: #5f6368;
}

.hidden {
    display: none !important;
}

/* ===== SUGGESTIONS ===== */
.suggestions {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-top: 6px;
    max-height: 360px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e8eaed;
}

.suggestions.active {
    display: block;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.suggestion-item:hover {
    background: #f1f3f4;
}

.suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eaed;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.suggestion-name {
    font-weight: 500;
    color: #202124;
}

.suggestion-details {
    font-size: 0.8rem;
    color: #5f6368;
}

.suggestion-empty {
    padding: 14px 16px;
    color: #5f6368;
    font-size: 0.95rem;
    text-align: center;
}

/* ===== BOTÃO "VER MAIS" (paginação UF/partido) ===== */
.ver-mais-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 12px;
    padding: 10px 16px;
    background: #e8f0fe;
    color: #1a73e8;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ver-mais-btn:hover {
    background: #1a73e8;
    color: #ffffff;
}

.ver-mais-btn:disabled {
    background: #f1f3f4;
    color: #9aa0a6;
    cursor: not-allowed;
}

/* ===== CANDIDATE DETAIL (Resultado) ===== */
.candidate-detail {
    width: 100%;
}

.back-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 6px 0;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-btn:hover {
    text-decoration: underline;
}

/* Botão "Voltar" dentro do card branco (dentro da .card-top-bar) */
.result-card .back-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.result-card .back-btn:hover {
    text-decoration: underline;
}

/* Barra superior do card: Voltar à esquerda, X à direita */
.card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.card-top-bar .back-btn {
    padding: 0;
    margin: 0;
    border: none;
    border-bottom: none;
    width: auto;
}

.card-close-btn {
    background: none;
    border: none;
    color: #5f6368;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.card-close-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Foto à esquerda + bloco de info à direita. Dentro do bloco de info: uma
   linha [nome + selo] sempre juntos, e "cargo · UF · número" livre embaixo
   pra quebrar em quantas linhas precisar sem afetar o selo (19/09/2026, a
   pedido do Lucas — antes o bloco nome+dados inteiro competia com o selo
   por espaço, então o selo caía pra baixo do nome quando os dados eram
   longos; agora só o nome mesmo compete com o selo, o que é raro de
   acontecer já que nomes de urna costumam ser curtos). */
.result-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.result-header-info {
    flex: 1;
    min-width: 0;
}

.result-header-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.result-header-name-row h2 {
    flex: 1;
    min-width: 0;
}

.position-badge {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .result-header {
        gap: 10px;
    }
    .result-header h2 {
        font-size: 1.05rem;
        line-height: 1.2;
    }
    .result-header p {
        font-size: 0.78rem;
        line-height: 1.3;
        margin-top: 4px;
    }
    .result-avatar {
        width: 48px;
        height: 48px;
    }
    .position-badge .status-badge {
        font-size: 0.72rem;
        padding: 5px 10px;
        white-space: nowrap;
    }
}

.result-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eaed;
    flex-shrink: 0;
}

.result-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #202124;
}

.result-header p {
    color: #5f6368;
    font-size: 0.9rem;
}

/* ===== STATUS BADGE (padronizado: lista de sugestões + card) ===== */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.3px;
    margin-top: 6px;
    background-color: #f1f3f4;
    color: #5f6368;
    border: none;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-badge.a-favor {
    background-color: #16a34a;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(22, 163, 74, 0.35);
}

.status-badge.contra {
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.35);
}

.status-badge.sem-posicao {
    background-color: #f1f3f4;
    color: #5f6368;
}

/* ===== ALERTA DE DIVERGÊNCIA (posição pública x voto oficial) =====
   Aparece quando o candidato tem posição pública (badge principal) MAS
   também tem um voto oficial divergente — ex.: criticou a medida
   publicamente, mas votou a favor no plenário. Clicável: expande o
   detalhe abaixo. Bloco de largura total FORA do cabeçalho (não mais
   dentro de .position-badge) — depois de várias tentativas de encaixar
   ele espremido ao lado do nome/cargo no mobile sem sobrepor nada,
   ficou mais simples e robusto como sua própria linha, com o
   ícone+texto genuinamente centralizados (18/09/2026). */
.divergence-alert {
    display: block;
    width: 100%;
    /* Sem margin-top: é o 1º elemento do 1º info-block, então o espaço
       antes dele já vem do margin-top:16px de .result-content — somar
       mais aqui deixava o vão maior que entre as outras seções
       (19/09/2026). */
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.2px;
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Achado 18/09/2026: `.divergence-alert { display: inline-block }` tem mais
   especificidade que a regra padrão do navegador `[hidden] { display: none }`
   (classe > seletor de atributo do UA stylesheet), então o botão.hidden=true
   do JS nunca escondia nada — o selo "declaração pública divergente"
   aparecia pra TODO candidato, mesmo sem divergência real. Esta regra, mais
   específica que a de cima, faz o hidden valer de novo. */
.divergence-alert[hidden] {
    display: none;
}

.divergence-alert:hover {
    background-color: #fde68a;
}

.divergence-detail {
    margin: 10px 0 14px;
    padding: 12px 14px;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #78350f;
}

.divergence-detail p {
    margin: 0 0 6px;
    color: #78350f;
}

.divergence-detail p:last-child {
    margin-bottom: 0;
}

.result-content {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

/* Linha divisória consistente entre TODOS os blocos de informação — antes
   só alguns tinham (ex.: suggestion-cta tinha border-top próprio, "Como
   pode influenciar" não tinha nada), inconsistente (19/09/2026). Não no
   primeiro bloco ("Posicionamento sobre 6x1"): a borda do cabeçalho do
   candidato já cumpre esse papel ali em cima. */
.info-block + .info-block {
    border-top: 1px solid #e8eaed;
    padding-top: 14px;
}

.info-block h3,
.result-content > .bloco-influencia h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block h3 i,
.result-content > .bloco-influencia h3 i {
    color: #5f6368;
}

/* Força a cor cinza padrão em todos os ícones de título do card,
   sobrescrevendo cores próprias do FontAwesome (ex.: fa-lightbulb). */
.result-content h3 i,
.result-content h4 i {
    color: #5f6368 !important;
}

.text-muted {
    color: #5f6368;
    font-size: 0.9rem;
}

.voto-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
}

.voto-item .voto-classificacao {
    /* Sem isso, o selo "A favor"/"Contra" quebrava em 2 linhas ("A" /
       "favor") quando o texto à esquerda ficava longo (ex.: "Votou a
       favor (como Deputado(a) Federal)") e espremia o espaço dele
       (19/09/2026). */
    flex-shrink: 0;
    white-space: nowrap;
}

.voto-classificacao.a-favor {
    color: #1e8e3e;
}
.voto-classificacao.contra {
    color: #d93025;
}
.voto-classificacao.ausente {
    color: #f9ab00;
}

.news-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.news-titulo {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
}

.news-titulo:hover {
    text-decoration: underline;
}

.news-fonte {
    font-size: 0.75rem;
    color: #5f6368;
    margin-top: 4px;
}

/* ===== BOTÃO "VER FONTE" (posicionamento) ===== */
#positionDetail > div:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.btn-fonte {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-fonte:hover {
    background: #d2e3fc;
    text-decoration: none;
}

.fonte-plataforma {
    margin-left: 8px;
    font-size: 0.75rem;
    color: #5f6368;
}

/* ===== SUGESTÃO (CTA no card) ===== */
/* Sem regras próprias de margem/borda: a separação já vem de
   `.info-block + .info-block` (19/09/2026) — evita duplicar o divisor. */

.suggestion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.suggestion-btn:active {
    transform: scale(0.99);
}

.suggestion-btn.primary {
    background: #1a73e8;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(26, 115, 232, 0.3);
}

.suggestion-btn.primary:hover {
    background: #1765cc;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}

/* Mantido por compatibilidade, mas o botão agora é sempre azul (primary). */
.suggestion-btn.secondary {
    background: #1a73e8;
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(26, 115, 232, 0.3);
}

.suggestion-btn.secondary:hover {
    background: #1765cc;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(32, 33, 36, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000; /* acima do .candidate-modal (2000) */
    animation: fadeIn 0.15s ease;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    animation: fadeIn 0.2s ease;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #202124;
}

.modal-close {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #f1f3f4;
    color: #202124;
}

.modal-subtitle {
    color: #5f6368;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #202124;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #dfe1e5;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #202124;
    transition: border-color 0.2s, background 0.2s;
    flex: 1;
    min-width: 120px;
}

.radio-option:hover {
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    accent-color: #1a73e8;
    cursor: pointer;
}

.radio-option:has(input:checked) {
    border-color: #1a73e8;
    background: #e8f0fe;
}

/* Honeypot: invisível para humanos, visível para bots */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.suggestion-feedback {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: left;
}

.suggestion-feedback.success {
    background: #e6f4ea;
    color: #1e8e3e;
}

.suggestion-feedback.error {
    background: #fce8e6;
    color: #d93025;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: #1a73e8;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1765cc;
}

.btn-primary:disabled {
    background: #a8c7fa;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f1f3f4;
    color: #5f6368;
}

.btn-secondary:hover {
    background: #e8eaed;
    color: #202124;
}

/* ===== RODAPÉ LEGAL ===== */
.legal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e8eaed;
    padding: 12px 16px;
    margin-top: 40px;
    font-size: 0.65rem;
    color: #5f6368;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.legal-footer-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.legal-footer-content p {
    margin-bottom: 4px;
}

.legal-footer-content p:last-child {
    margin-bottom: 0;
}

.legal-meta {
    font-size: 0.6rem;
    color: #9aa0a6;
    padding-top: 4px;
    margin-top: 6px;
}

/* ===== BLOCO "COMO PODE INFLUENCIAR" (padrão do card) ===== */
.bloco-influencia {
    padding: 0;
    background: none;
    border-radius: 0;
}

.bloco-influencia p {
    margin: 0;
    font-size: 0.9rem;
    color: #5f6368;
    line-height: 1.5;
}

/* ===== AVISO DE TRANSPARÊNCIA (card do candidato) ===== */
.transparency-notice {
    margin-top: 0;
    padding: 10px 0 0 0;
    border: none;
    background: none;
    font-size: 0.72rem;
    color: #9aa0a6;
    line-height: 1.5;
}

.transparency-notice p {
    margin: 0;
    font-style: italic;
}

/* ===== AVISO NO RODAPÉ DO CARD ===== */
.card-footer-notice {
    /* Sem margin-top, mesmo motivo do .suggestion-cta acima: o gap:14px
       de .result-content já separa as seções por igual (19/09/2026). */
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
    font-size: 0.7rem;
    color: #9aa0a6;
    text-align: left;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.card-footer-notice p {
    margin: 0;
    padding: 0;
}

/* ===== TOP CANDIDATOS (Mais buscados) ===== */
.top-candidatos {
  margin-top: 20px;
  text-align: left;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.top-titulo {
  font-size: 0.85rem;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.top-titulo i {
  color: #ea4335;
  font-size: 0.95rem;
}

.top-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 1px 2px rgba(32, 33, 36, 0.04);
}

.top-lista li:hover {
  border-color: #d2d5d9;
  box-shadow: 0 2px 8px rgba(32, 33, 36, 0.08);
  transform: translateY(-1px);
}

.top-lista li:active {
  transform: translateY(0);
}

.top-pos {
  font-size: 0.95rem;
  font-weight: 700;
  color: #9aa0a6;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.top-lista li:nth-child(1) .top-pos { color: #ea4335; }
.top-lista li:nth-child(2) .top-pos { color: #f9ab00; }
.top-lista li:nth-child(3) .top-pos { color: #1a73e8; }

.top-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eaed;
  flex-shrink: 0;
}

.top-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-nome {
  font-weight: 600;
  font-size: 0.92rem;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.top-detalhes {
  font-size: 0.76rem;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-acessos {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1a73e8;
  background: #e8f0fe;
  padding: 5px 10px;
  border-radius: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .top-lista li {
    padding: 10px 12px;
    gap: 10px;
  }
  .top-avatar {
    width: 36px;
    height: 36px;
  }
  .top-nome {
    font-size: 0.88rem;
  }
  .top-acessos {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

/* ===== MODAL DO CANDIDATO ===== */
.candidate-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  animation: fadeIn 0.15s ease;
}

.candidate-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.55);
  z-index: 1;
}

.candidate-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  animation: modalSlideIn 0.2s ease;
}


@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Remove a animação "fadeIn" antiga da .result-card,
   porque agora quem anima é o modal-content */
.candidate-modal .result-card {
  animation: none;
  margin: 0;
}

/* Trava o scroll do body quando o modal está aberto */
body.modal-open {
  overflow: hidden;
}

/* Ajuste pra telas pequenas */
@media (max-width: 480px) {
  .candidate-modal {
    padding: 12px 8px;
  }
}

/* Badge de posicionamento dentro do ranking */
.top-status {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-block;
  margin-right: 6px;
}

.top-status.a-favor {
  background-color: #16a34a;
  color: #ffffff;
}
.top-status.contra {
  background-color: #dc2626;
  color: #ffffff;
}
.top-status.sem-posicao {
  background-color: #f1f3f4;
  color: #5f6368;
}

/* Container dos badges à direita */
.top-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .top-status {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  .top-badges {
    gap: 4px;
  }
}

.top-ver-mais-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  background: #e8f0fe;
  color: #1a73e8;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.top-ver-mais-btn:hover {
  background: #1a73e8;
  color: #ffffff;
}

/* ===== SCROLLBAR ===== */
.suggestions::-webkit-scrollbar {
    width: 4px;
}
.suggestions::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}
.suggestions::-webkit-scrollbar-track {
    background: #f1f3f4;
}

/* Botão "Tentar novamente" quando as notícias estão indisponíveis */
.news-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    border: 1px solid #1a73e8;
    border-radius: 999px;
    background: #ffffff;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.news-retry-btn:hover {
    background: #e8f0fe;
}

/* Destaque do bloco "Como pode influenciar" (senador contra a PEC) */
.result-content > .bloco-influencia.destaque-atencao,
.result-content > .bloco-influencia.destaque-positivo {
    padding: 12px 14px;
    background: #fef3e8;
    border: 1px solid #f6c48f;
    border-left: 4px solid #e8710a;
    border-radius: 10px;
}

.result-content > .bloco-influencia.destaque-positivo {
    background: #e6f4ea;
    border-color: #a8d5b5;
    border-left-color: #188038;
}

.bloco-influencia.destaque-atencao p,
.bloco-influencia.destaque-positivo p {
    color: #7a3b00;
    font-weight: 600;
}

.bloco-influencia.destaque-positivo p {
    color: #0d5c25;
}

/* Linha "Deputada Federal · Partido · UF · Número" do cabeçalho do card:
   um pouco maior e mais afastada do nome (pedido do Lucas, 19/09/2026).
   Fica no fim do arquivo para vencer a regra base `.result-header p`. */
.result-header p {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .result-header p {
        font-size: 0.88rem;
        line-height: 1.35;
        margin-top: 8px;
    }
}

/* ===== ABAS (Buscar / Mapa / Partidos) ===== */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    background: #f1f3f4;
    border-radius: 999px;
}

.tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #5f6368;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.15);
}

.explorar-view[hidden],
#viewBuscar[hidden] {
    display: none;
}

.explorar-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

/* Controle "Ver por: Posicionamento público | Voto na PEC" */
.explorar-controles {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.explorar-rotulo {
    font-size: 0.85rem;
    color: #5f6368;
    font-weight: 500;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    background: #f1f3f4;
    border-radius: 999px;
}

.segmented-btn {
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #5f6368;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.segmented-btn.active {
    background: #1a73e8;
    color: #ffffff;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 12px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #ffffff;
    color: #3c4043;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}

.chip.active {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8;
    font-weight: 600;
}

/* ----- Mapa ----- */
.mapa-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapa-svg {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    /* 1 dedo rola a página; zoom/arraste são tratados por JS (explorar.js) */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.mapa-svg.com-zoom {
    touch-action: none;
    cursor: grab;
}

.mapa-svg.arrastando {
    cursor: grabbing;
}

.mapa-svg svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* vector-effect: espessura em pixels na tela, não em unidades do mapa (o <g>
   tem scale 0.0001, então um stroke-width comum ficava invisível). */
.mapa-svg path.uf {
    stroke: #ffffff;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
    fill: #e8eaed;
    cursor: pointer;
    transition: opacity 0.15s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Sem o retângulo de foco do navegador (desenhava uma caixa quadrada em
   volta do estado ao clicar); o foco por teclado usa a borda no formato
   do próprio estado. */
.mapa-svg path.uf:focus {
    outline: none;
}

.mapa-svg path.uf:hover {
    opacity: 0.8;
}

.mapa-svg path.uf:focus-visible {
    stroke: #7b1fa2;
    stroke-width: 2px;
}

.mapa-svg path.uf.selecionado {
    stroke: #7b1fa2;
    stroke-width: 3px;
    opacity: 1;
}

.mapa-zoom {
    position: absolute;
    right: 8px;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mapa-zoom button {
    width: 34px;
    height: 34px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    color: #3c4043;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(32, 33, 36, 0.15);
}

.mapa-zoom button:hover {
    background: #f1f3f4;
}

.mapa-legenda {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: #5f6368;
}

.mapa-legenda-barra {
    width: 90px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, hsl(0, 58%, 52%), hsl(60, 58%, 52%), hsl(120, 58%, 52%));
}

.mapa-legenda-sem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.mapa-legenda-sem i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #e8eaed;
    border: 1px solid #dadce0;
}

.explorar-painel {
    border-top: 1px solid #e8eaed;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.explorar-titulo {
    font-size: 1.05rem;
    font-weight: 600;
    color: #202124;
}

.explorar-resumo,
.explorar-dica,
.explorar-status {
    font-size: 0.85rem;
    color: #5f6368;
}

.explorar-lista-wrap,
.partido-detalhe {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.explorar-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.explorar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.explorar-item:hover {
    background: #f8f9fa;
}

.explorar-item .top-info {
    flex: 1;
    min-width: 0;
}

.explorar-item .top-status {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ----- Partidos ----- */
.partidos-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.partido-item {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.partido-cabecalho {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px 14px;
    border: none;
    background: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.partido-cabecalho:hover {
    background: #f8f9fa;
}

.partido-nome {
    font-weight: 700;
    font-size: 1rem;
    color: #202124;
}

.partido-total {
    font-size: 0.8rem;
    color: #5f6368;
}

.partido-barra {
    grid-column: 1 / -1;
    display: flex;
    height: 8px;
    border-radius: 4px;
    background: #e8eaed;
    overflow: hidden;
}

.partido-barra .b-favor { background: #34a853; }
.partido-barra .b-contra { background: #ea4335; }

.partido-percentuais {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
}

.pct-favor { color: #188038; }
.pct-contra { color: #d93025; }

.partido-sem {
    font-weight: 400;
    color: #5f6368;
}

.partido-detalhe {
    padding: 0 14px 14px;
}

.partido-detalhe[hidden] {
    display: none;
}

/* Busca dentro da lista de candidatos (abas Mapa e Partidos) */
.lista-busca {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid #dfe1e5;
    border-radius: 999px;
}

.lista-busca:focus-within {
    border-color: #1a73e8;
}

.lista-busca i {
    color: #9aa0a6;
    font-size: 0.9rem;
}

.lista-busca-input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #202124;
}

.explorar-titulo-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.explorar-limpar {
    padding: 4px 10px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #ffffff;
    color: #5f6368;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.explorar-limpar:hover {
    background: #f1f3f4;
}

.partido-mapeadas {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: #5f6368;
}

.partido-numero {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 6px;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 0.8rem;
    font-weight: 600;
    vertical-align: 1px;
}

/* Selo do topo agora tem texto mais longo: pode quebrar em 2 linhas no celular */
.hero-tag {
    text-align: center;
    line-height: 1.35;
    border-radius: 20px;
}

@media (max-width: 480px) {
    .hero-tag { font-size: 0.82rem; }
}

.partido-mapeadas strong {
    color: #3c4043;
    font-weight: 600;
}

.pct-abs {
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.85;
}

.partido-percentuais {
    gap: 12px;
}

.partido-percentuais > span:last-child {
    text-align: right;
}

/* Selo do topo numa linha só: a fonte acompanha a largura da tela
   (mínimo legível de ~10,5px; acima disso, até 0.92rem no computador). */
.hero-tag {
    white-space: nowrap;
    font-size: clamp(0.66rem, 2.9vw, 0.92rem);
    padding: 8px 10px;
    border-radius: 999px;
    overflow: hidden;
}

.hero-tag i {
    font-size: 1.1em;
    margin-right: 4px;
}

@media (max-width: 480px) {
    .hero-tag { font-size: clamp(0.66rem, 2.9vw, 0.82rem); }
}

/* Ajuste fino para telas de 320-360px, onde ainda cortava. */
.hero-tag {
    padding: 8px 6px;
    font-size: clamp(0.58rem, 2.8vw, 0.92rem);
}

@media (max-width: 480px) {
    .hero-tag { font-size: clamp(0.58rem, 2.8vw, 0.82rem); }
}

/* ===== COMPARTILHAR (card do candidato) ===== */
.story-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    margin-top: 2px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    /* degradê "Instagram" */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 2px 8px rgba(220, 39, 67, 0.3);
    transition: transform 0.1s, box-shadow 0.2s;
}

.story-btn i {
    font-size: 1.2rem;
}

.story-btn:hover {
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.story-btn:active {
    transform: scale(0.99);
}

.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.share-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 4px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #ffffff;
    color: #3c4043;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.share-btn i {
    font-size: 1.15rem;
}

.share-btn:hover {
    background: #f8f9fa;
}

.share-btn.whatsapp i { color: #25d366; }
.share-btn.x i { color: #202124; }
.share-btn.facebook i { color: #1877f2; }
.share-btn.telegram i { color: #229ed9; }
.share-btn.copiar i { color: #5f6368; }

/* Modal do story */
.story-modal-content {
    max-width: 420px;
    text-align: center;
}

.story-preview {
    display: block;
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
    margin: 6px auto 14px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.story-carregando {
    padding: 40px 0;
}

.story-acoes {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.story-dica {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.45;
}

.toast-compartilhar {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    z-index: 4000;
    padding: 10px 18px;
    border-radius: 999px;
    background: #202124;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}

.toast-compartilhar.visivel {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ===== MINHA COLINHA ===== */
#blocoColinha[hidden],
.colinha-link[hidden],
.colinha-picker[hidden],
#viewColinha[hidden] {
    display: none;
}

/* 4 abas: no celular, ícone em cima e texto embaixo, senão não cabe */
@media (max-width: 480px) {
    .tab-btn {
        flex-direction: column;
        gap: 2px;
        padding: 7px 2px;
        font-size: 0.72rem;
        line-height: 1.15;
    }
    .tab-btn i { font-size: 1rem; }
}

.colinha-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #1a73e8;
    border-radius: 12px;
    background: #e8f0fe;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.colinha-btn:hover { background: #d2e3fc; }

.colinha-btn.na-colinha {
    background: #e6f4ea;
    border-color: #188038;
    color: #188038;
}

.colinha-link {
    display: block;
    margin: 8px auto 0;
    padding: 4px 8px;
    border: none;
    background: none;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.colinha-intro {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.colinha-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 8px;
}

.colinha-titulo i { color: #1a73e8; }

#colinhaConteudo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.colinha-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.colinha-uf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #5f6368;
    font-weight: 500;
}

.colinha-uf select {
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    background: #ffffff;
    color: #202124;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.colinha-progresso {
    font-size: 0.85rem;
    color: #5f6368;
}

.colinha-progresso strong { color: #1a73e8; }

.colinha-barra {
    height: 6px;
    border-radius: 3px;
    background: #e8eaed;
    overflow: hidden;
}

.colinha-barra i {
    display: block;
    height: 100%;
    background: #1a73e8;
    transition: width 0.3s;
}

.colinha-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colinha-slot {
    padding: 12px 14px;
    border: 1px dashed #dadce0;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colinha-slot.preenchido {
    border-style: solid;
    border-color: #e8eaed;
}

.colinha-slot-titulo {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5f6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.colinha-digitos-info {
    margin-left: 6px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #9aa0a6;
}

.colinha-escolher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #f1f3f4;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.colinha-escolher:hover { background: #e8eaed; }

.colinha-slot-corpo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.colinha-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #e8eaed;
    flex-shrink: 0;
}

.colinha-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.colinha-nome {
    font-size: 0.95rem;
    font-weight: 700;
    color: #202124;
}

.colinha-detalhes {
    font-size: 0.8rem;
    color: #5f6368;
}

.colinha-6x1 {
    font-size: 0.72rem;
    font-weight: 700;
    color: #80868b;
}

.colinha-6x1.favor { color: #188038; }
.colinha-6x1.contra { color: #d93025; }

.colinha-numero {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.digito {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 36px;
    border-radius: 7px;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 1.15rem;
    font-weight: 800;
}

.colinha-slot-botoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.colinha-mini {
    padding: 6px 12px;
    border: 1px solid #dadce0;
    border-radius: 999px;
    background: #ffffff;
    color: #3c4043;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.colinha-mini:hover { background: #f1f3f4; }
.colinha-mini.perigo { color: #d93025; }

.colinha-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.colinha-resultados {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.colinha-numero-mini {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 800;
    font-size: 0.9rem;
}

.colinha-acoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.colinha-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #ffffff;
    color: #3c4043;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.colinha-acao:hover { background: #f8f9fa; }

.colinha-acao.primaria {
    grid-column: 1 / -1;
    border: none;
    background: #1a73e8;
    color: #ffffff;
}

.colinha-acao.primaria:hover { background: #1765cc; }
.colinha-acao.perigo { color: #d93025; }

.colinha-aviso {
    font-size: 0.75rem;
    line-height: 1.45;
}

/* Quadradinhos para digitar o número do candidato */
.colinha-entrada {
    display: flex;
    gap: 8px;
}

.digito-input {
    flex: 1 1 0;
    min-width: 0;
    max-width: 56px;
    height: 52px;
    padding: 0;
    border: 2px solid #dadce0;
    border-radius: 12px;
    background: #ffffff;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.digito-input:focus {
    border-color: #1a73e8;
    background: #e8f0fe;
}

.colinha-msg {
    font-size: 0.8rem;
    min-height: 0;
}

.colinha-msg:empty {
    display: none;
}

.colinha-msg.erro {
    color: #d93025;
}

.colinha-busca {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Confirmação no layout do site */
.confirm-modal-content {
    max-width: 380px;
}

.confirm-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: #202124;
    margin-bottom: 10px;
}

.confirm-texto {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3c4043;
    margin-bottom: 18px;
}

.confirm-texto strong {
    color: #202124;
}

.btn.btn-danger {
    background: #d93025;
    color: #ffffff;
}

.btn.btn-danger:hover {
    background: #b3261e;
}

/* Ações da colinha: Compartilhar em cima; embaixo, numa linha só:
   Limpar (esquerda) · Copiar lista · Baixar imagem (direita) */
.colinha-acoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.colinha-acoes .colinha-acao.primaria {
    width: 100%;
}

.colinha-acoes-linha {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.colinha-acoes-linha .colinha-acao {
    flex-direction: column;
    gap: 4px;
    padding: 10px 4px;
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
}

.colinha-acoes-linha .colinha-acao i {
    font-size: 1rem;
}

/* Minha Colinha: sem o selo/título/subtítulo do topo (só as abas e a colinha) */
.hero.aba-colinha .logo {
    display: none;
}

.hero.aba-colinha .explorar-view {
    margin-top: 0;
}

.story-modelos {
    display: flex;
    justify-content: center;
    margin: 0 auto 10px;
}
