.lista { max-width: 1080px; margin: 0 auto; padding: 84px 24px 64px; }
.lista-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.lista-cabeca h1 { font-size: 22px; }
.lista-acoes { display: flex; gap: 8px; }
/* filtros: busca + chips */
.filtros { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.busca {
  position: relative; display: flex; align-items: center; width: 190px; height: 32px; flex: none;
  border: 1px solid var(--fio); background: var(--sup); border-radius: 8px; transition: border-color .12s, box-shadow .12s, width .25s var(--ease);
}
.busca:focus-within { border-color: var(--texto); box-shadow: 0 0 0 3px var(--anel); width: 250px; }
.busca-icone { display: grid; place-items: center; width: 30px; color: var(--apagado); flex: none; }
.busca input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0 10px 0 0; font-size: 13px; }
.busca input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }
.busca[data-dica]:hover::after { display: none; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.corta { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; flex: none;
  border: 1px solid var(--fio); background: var(--sup); color: var(--texto-2); border-radius: 999px; font-size: 12.5px; font-weight: 500;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.chip b { font-weight: 500; font-size: 11px; color: var(--fraco); }
.chip:hover { border-color: var(--fio-forte); color: var(--texto); }
.chip:active { transform: scale(.97); }
.chip.ativo { background: var(--acao); border-color: var(--acao); color: var(--acao-texto); }
.chip.ativo b { color: inherit; opacity: .6; }

/* grupos */
.grupos { display: grid; gap: 22px; }
.grupo-cabeca {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 4px 4px 4px 0; margin-bottom: 10px;
  border: 0; background: none; text-align: left; color: var(--texto); border-radius: var(--r-btn);
}
.grupo-cabeca h2 { font-size: 14px; font-weight: 600; }
.grupo-seta { display: grid; place-items: center; width: 18px; color: var(--fraco); transition: transform .25s var(--ease); }
.grupo-icone { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--sup); border: 1px solid var(--fio); color: var(--apagado); }
.grupo-n { color: var(--fraco); }
.grupo-cabeca::after { content: ''; flex: 1; height: 1px; background: var(--fio); margin-left: 6px; }
.grupo-cabeca:hover .grupo-seta, .grupo-cabeca:hover .grupo-icone { color: var(--texto); }
.grupo.fechado .grupo-seta { transform: rotate(-90deg); }
.grupo-corpo { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s var(--ease), opacity .25s; }
.grupo-corpo > .grade { min-height: 0; overflow: hidden; padding: 2px; margin: -2px; }
.grupo.fechado .grupo-corpo { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .32s var(--ease), opacity .25s, visibility 0s .32s; }
.grupo.fechado .grupo-cabeca { margin-bottom: 0; }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cartao {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--sup); border: 1px solid var(--fio); border-radius: var(--r-caixa); text-decoration: none; color: inherit;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.cartao.entra { animation: cartao .4s var(--ease) both; animation-delay: calc(var(--k, 0) * 35ms); }
.cartao:hover { border-color: var(--fio-forte); box-shadow: var(--sombra-leve); transform: translateY(-1px); }
.cartao-info { display: grid; gap: 4px; padding: 12px 14px 12px; min-width: 0; }
.cartao h2 { font-size: 14px; padding-right: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao p { margin: 0; color: var(--apagado); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartao-rodape { display: flex; gap: 6px; align-items: center; color: var(--apagado); font-size: 12px; padding-top: 4px; }
.cartao-etapas { display: inline-flex; align-items: center; gap: 5px; }
.cartao-etapas svg { color: var(--fraco); }
.cartao-ponto { color: var(--fraco); }
.cartao .btn-icone { position: absolute; top: 8px; right: 8px; opacity: 0; background: var(--sup); border-color: var(--fio); }
.cartao:hover .btn-icone, .cartao:focus-within .btn-icone { opacity: 1; }
@media (hover: none) { .cartao .btn-icone { opacity: .85; } }
.cartao.saindo { opacity: 0; transform: scale(.97); transition: opacity .18s, transform .18s; }
@keyframes cartao { from { opacity: 0; transform: translateY(8px); } }

/* miniatura */
.mini {
  position: relative; height: 112px; border-bottom: 1px solid var(--fio); overflow: hidden;
  background-color: var(--fundo); background-image: radial-gradient(circle, var(--ponto) .9px, transparent 1.2px); background-size: 12px 12px;
}
.carregando-mini::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, var(--realce) 50%, transparent 70%); background-size: 220% 100%;
  animation: brilho 1.2s linear infinite;
}
@keyframes brilho { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.mini-svg { position: absolute; inset: 8px 10px; width: calc(100% - 20px); height: calc(100% - 16px); overflow: visible; animation: aparece .35s both; }
.m-area { fill: var(--area-fundo); stroke: var(--area-fio); stroke-width: calc(var(--esp) * 1px); stroke-dasharray: calc(var(--esp) * 3px) calc(var(--esp) * 3px); }
.m-lig { fill: none; stroke: var(--lig-hover); stroke-width: calc(var(--esp) * 1.4px); }
.m-lig.forte { stroke: var(--texto); }
.m-luz {
  fill: none; stroke: var(--fluxo-forte); stroke-linecap: round; stroke-width: calc(var(--esp) * 2.4px);
  stroke-dasharray: .07 .93; stroke-dashoffset: 0; opacity: 0; transition: opacity .3s;
}
.cartao:hover .m-luz { opacity: .95; animation: luzMini 1.6s linear infinite; }
:root[data-tema="escuro"] .cartao:hover .m-luz { filter: drop-shadow(0 0 calc(var(--esp) * 3px) var(--fluxo-forte)); }
@keyframes luzMini { to { stroke-dashoffset: -1; } }
.m-no rect { fill: color-mix(in srgb, var(--cor) 7%, var(--sup)); stroke: color-mix(in srgb, var(--cor) 55%, var(--fio-forte)); stroke-width: calc(var(--esp) * 1.5px); }
.m-no .m-marca { fill: color-mix(in srgb, var(--cor) 70%, var(--sup)); stroke: none; }
.m-no { animation: noMini .45s var(--ease) both; animation-delay: calc(var(--k) * 25ms); transform-box: fill-box; transform-origin: center; }
@keyframes noMini { from { opacity: 0; transform: scale(.85); } }
.nada { padding: 56px 0 24px; display: grid; justify-items: center; gap: 12px; color: var(--apagado); font-size: 13px; font-weight: 500; animation: aparece .3s; }

.lista-vazia { padding: 72px 0 40px; display: grid; gap: 28px; justify-items: center; }

/* gerar */
.gerar-sugestoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sugestao {
  border: 1px solid var(--fio); background: var(--sup-2); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; color: var(--texto);
  transition: border-color .12s, background .12s;
}
.sugestao:hover { border-color: var(--texto); background: var(--sup); }
.gerando { display: grid; justify-items: center; gap: 16px; padding: 22px 0 8px; text-align: center; }
.gerando svg { overflow: visible; }
.gerando .caixa { fill: var(--sup); stroke: var(--texto); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: nasce 2.4s var(--ease) infinite; }
.gerando .caixa:nth-of-type(2) { animation-delay: .35s; }
.gerando .caixa:nth-of-type(3) { animation-delay: .7s; }
.gerando .fio { stroke: var(--fraco); stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; animation: corre .6s linear infinite; }
@keyframes nasce { 0% { opacity: 0; transform: scale(.7); } 18%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes corre { to { stroke-dashoffset: -8; } }
.gerando-msg { font-weight: 500; min-height: 20px; transition: opacity .25s; }
.gerando-tempo { color: var(--apagado); }
.gerar-erro { margin: 10px 0 0; color: var(--perigo); font-size: 12.5px; }

@media (max-width: 640px) {
  .lista { padding: 68px 16px 48px; }
  .lista-cabeca h1 { font-size: 19px; }
  .lista-acoes { width: 100%; }
  .lista-acoes .btn { flex: 1; justify-content: center; }
  .busca, .busca:focus-within { width: 100%; }
  .chips { flex: 0 0 100%; padding-bottom: 2px; }
  .grade { grid-template-columns: 1fr; }
  .ensina { gap: 14px; }
  .ensina-item { width: 96px; }
}
