/* Etapas e resultado, com contraste herdado dos temas locais. */
.andamento-tribunal {padding:16px;border:1px solid var(--linha);border-left:3px solid var(--carimbo);border-radius:14px;background:var(--papel-2);margin:16px 0;min-width:0;}
.andamento-cabecalho {display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.andamento-tipo {font-size:.65rem;letter-spacing:.08em;font-weight:700;color:var(--tinta-70);}
.andamento-situacao {font-size:.7rem;font-weight:600;color:var(--carimbo);background:var(--carimbo-suave);padding:4px 8px;border-radius:6px;}
.andamento-tribunal h4,#caDetalhe .andamento-tribunal h4 {font-family:var(--display);font-size:1rem;line-height:1.4;margin:0 0 6px;color:var(--tinta);}
.andamento-tribunal p,#caDetalhe .andamento-tribunal p {font-size:.8rem;line-height:1.6;margin:6px 0;color:var(--tinta-70);overflow-wrap:anywhere;}
.andamento-tribunal .andamento-etapa {font-size:.76rem;}
.andamento-tribunal .andamento-contagem {font-weight:600;color:var(--tinta);}
.andamento-barra {height:6px;overflow:hidden;background:var(--papel-3);border-radius:6px;margin:14px 0;}
.andamento-barra>span {display:block;height:100%;background:var(--carimbo);border-radius:inherit;}
.andamento-barra[data-indeterminado]>span {width:35%;animation:andamento-espera 2s ease-in-out infinite;}
@keyframes andamento-espera {from{transform:translateX(-110%);}to{transform:translateX(390%);}}
.andamento-etapas {list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0;padding:0;}
.andamento-etapas li {display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:.64rem;line-height:1.4;color:var(--tinta-70);overflow-wrap:anywhere;}
.andamento-marca {display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--controle);border-radius:50%;font-size:.7rem;flex:none;}
.andamento-etapas [aria-current="step"] {color:var(--carimbo);font-weight:700;}
.andamento-etapas [aria-current="step"] .andamento-marca {background:var(--carimbo);color:var(--m3-on-primary,#fff);border-color:var(--carimbo);}
.andamento-etapas [data-situacao="anterior"] .andamento-marca {color:var(--carimbo);background:var(--carimbo-suave);border-color:var(--carimbo);}
.andamento-meta {display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:12px;padding-top:10px;border-top:1px solid var(--linha);font-size:.7rem;line-height:1.6;color:var(--tinta-70);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.andamento-tribunal[data-estado="aviso"] {border-left-color:var(--ocre);}
.andamento-tribunal[data-estado="aviso"] .andamento-situacao {color:var(--ocre);background:var(--ocre-suave);}
.andamento-tribunal[data-estado="sucesso"] {border-left-color:var(--verde);}
.andamento-tribunal[data-estado="sucesso"] .andamento-situacao {color:var(--verde);background:var(--verde-suave);}
.andamento-tribunal .andamento-erro {color:var(--oxido);}
@media(prefers-reduced-motion:reduce) {.andamento-barra[data-indeterminado]>span {animation:none;width:100%;opacity:.5;}}
@media(forced-colors:active) {.andamento-barra {border:1px solid CanvasText;}.andamento-barra>span {background:Highlight;}}
