/*
 * Conferência de atas (30/10/2026): por processo, com o motivo de cada ata que falta.
 * Reaproveita os tons e cartões de completed-review-v2.css (cr-verdict-card, cr-verdict, cr-empty).
 */
.at-workspace .at-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.at-workspace .at-hero h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.at-workspace .at-hero h2 span {
  display: block;
  max-width: 80ch;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
}
.at-summary {
  margin: 18px 0 14px;
}
.at-summary .cr-verdict-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.at-summary .cr-verdict-card small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.at-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.at-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.at-chips button {
  padding: 6px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.at-chips button[aria-pressed='true'] {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: var(--blue-line);
}
.at-search {
  flex: 1 1 260px;
  max-width: 380px;
}
.at-search input {
  width: 100%;
}

/* Lista por processo: cabeçalho e linhas na mesma grade */
.at-head,
.at-process > summary {
  display: grid;
  grid-template-columns: minmax(220px, 2.2fr) 70px 120px 90px minmax(170px, 1.4fr);
  gap: 12px;
  align-items: center;
}
.at-head {
  padding: 0 16px 8px 36px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.at-list {
  display: grid;
  gap: 6px;
}
.at-process {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 3px 0 var(--tone, transparent);
}
.at-process > summary {
  position: relative;
  padding: 12px 16px 12px 36px;
  cursor: pointer;
  list-style: none;
}
/* A seta de abrir (ui-nexu.css) fica fora da grade, à esquerda. */
.at-process > summary::before {
  position: absolute;
  top: 22px;
  left: 16px;
  margin: 0;
}
.at-process > summary::-webkit-details-marker {
  display: none;
}
.at-process > summary:hover {
  background: var(--surface-subtle);
  border-radius: 12px;
}
.at-process[open] > summary {
  border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
}
.at-cnj strong {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
}
.at-cnj small,
.at-last small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.at-last small {
  display: none;
}
.at-trt,
.at-last,
.at-count {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.at-count {
  color: var(--muted);
}
.at-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.at-why {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.at-why::before {
  color: var(--tone);
  font-weight: 700;
  content: 'Motivo: ';
}

/* Audiências do processo */
.at-hearings {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 16px 14px 36px;
  list-style: none;
}
.at-hearings li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.at-hearings i {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--tone);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: var(--tone-soft);
  border-radius: 50%;
}
.at-hearings strong {
  font-size: 13px;
}
.at-hearings p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.5;
}
.at-hearings small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.at-source {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.at-source b {
  color: var(--warning);
}

@media (max-width: 900px) {
  .at-head {
    display: none;
  }
  .at-process > summary {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }
  .at-cnj,
  .at-badges {
    grid-column: 1 / -1;
  }
  .at-last small {
    display: inline;
    margin-right: 4px;
  }
  .at-last small::after {
    content: ':';
  }
}
