.chips { display: flex; gap: 8px; flex-wrap: wrap; }
/* Seletor de companhia: 4 opções na mesma linha em telas pequenas */
.chips.companhias { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.chips.companhias .chip { padding: 0 10px; justify-content: center; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  min-height: var(--touch); padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; gap: 8px; flex: none;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--hover-line); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--primary-fill); color: var(--on-primary-fill); border-color: transparent; }
.chip .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.chip[aria-pressed="true"] .dot, .chip[aria-checked="true"] .dot { box-shadow: 0 0 0 2px var(--primary); }

/* Controle segmentado (tema, tamanho da fonte) */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; }
.segmented button {
  min-height: var(--touch); border: 0; border-radius: 10px; background: transparent; color: var(--text-muted);
  font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s, color .2s;
}
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
/* Chip "Todas" selecionado na paleta "todas": mesmo degradê dos cards grandes, sem nuvens. */
[data-cia="todas"] .chip[data-id="todas"][aria-checked="true"] { background: var(--todas-degrade); color: #FFFFFF; }
[data-cia="todas"] .chip[data-id="todas"][aria-checked="true"] .dot { box-shadow: none; }
