/*
 * Conferência de prazos baixados, versão 2 (30/10/2026): resultado do agente em primeiro plano,
 * vocabulário do Manual e checklist marcado. Carregar depois de completed-review.css.
 * Tons: bad = erro, warn = conferir, info = cadastro, good = tudo certo, muted = sem resultado.
 */
.cr-workspace {
  --cr-bad: var(--danger);
  --cr-warn: var(--warning);
  --cr-info: var(--blue);
  --cr-good: var(--success);
  --cr-muted: var(--muted);
}
.cr-workspace [data-tone='bad'],
.cr-drawer [data-tone='bad'] { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.cr-workspace [data-tone='warn'],
.cr-drawer [data-tone='warn'] { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.cr-workspace [data-tone='info'],
.cr-drawer [data-tone='info'] { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.cr-workspace [data-tone='good'],
.cr-drawer [data-tone='good'] { --tone: var(--success); --tone-soft: var(--success-soft); }
.cr-workspace [data-tone='muted'],
.cr-drawer [data-tone='muted'] { --tone: var(--muted); --tone-soft: var(--surface-subtle); }

/* Cabeçalho: pergunta + explicação em uma linha de leitura */
.cr-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.cr-hero h2 span {
  display: block;
  max-width: 78ch;
  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;
}

/* Como funciona: três passos numerados */
ol.cr-agents {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
ol.cr-agents li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
ol.cr-agents b {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--blue-soft);
  border-radius: 8px;
}
ol.cr-agents strong {
  display: grid;
  gap: 3px;
  font-size: 13.5px;
}
ol.cr-agents small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

/* Resultado do agente: cartões que filtram a lista */
.cr-verdicts {
  margin: 14px 0;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cr-verdicts header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  justify-content: space-between;
}
.cr-verdicts h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}
.cr-verdicts header p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.cr-progress {
  height: 8px;
  margin: 14px 0 16px;
  overflow: hidden;
  background: var(--surface-subtle);
  border-radius: 999px;
}
.cr-progress i {
  display: block;
  height: 100%;
  background: var(--accent-fill);
  border-radius: 999px;
  transition: width 300ms ease-out;
}
.cr-verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.cr-verdict-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tone);
  border-radius: 12px;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.cr-verdict-card strong {
  color: var(--tone);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
}
.cr-verdict-card span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.cr-verdict-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.cr-verdict-card[aria-pressed='true'] {
  background: var(--tone-soft);
  border-color: var(--tone);
}
.cr-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Números do período, discretos (o destaque é o resultado) */
.cr-workspace .cr-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.cr-workspace .cr-metrics > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.cr-workspace .cr-metrics strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 750;
}
.cr-workspace .cr-metrics span {
  font-size: 12.5px;
  font-weight: 600;
}
.cr-workspace .cr-metrics small {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

/* Filtro rápido acima da lista */
.cr-workspace .cr-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 10px;
}
.cr-workspace .cr-stages 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;
}
.cr-workspace .cr-stages button[data-tone]::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  content: '';
  background: var(--tone);
  border-radius: 50%;
}
.cr-workspace .cr-stages button[aria-pressed='true'] {
  color: var(--ink);
  background: var(--blue-soft);
  border-color: var(--blue-line);
}

/* Lista: faixa da cor do resultado à esquerda; selo com o resultado */
.cr-workspace .cr-table tbody tr {
  box-shadow: inset 3px 0 var(--tone, transparent);
}
.cr-workspace .cr-table td {
  vertical-align: top;
}
.cr-workspace .cr-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.cr-workspace .cr-table td small em {
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}
.cr-verdict {
  display: inline-block;
  padding: 3px 10px;
  color: var(--tone);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--tone-soft);
  border-radius: 999px;
}

/* Detalhe do prazo */
.cr-drawer .cr-drawer-heading {
  box-shadow: inset 0 -4px var(--tone, transparent);
}
.cr-result {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--tone-soft);
  border: 1px solid var(--tone);
  border-radius: 14px;
}
.cr-result-label {
  margin: 0;
  color: var(--tone);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 750;
}
.cr-result-action {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
}
.cr-findings {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.cr-findings li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 10px;
}
.cr-findings b {
  padding: 2px 8px;
  color: var(--tone);
  font-size: 11px;
  background: var(--tone-soft);
  border-radius: 999px;
}
.cr-findings span {
  font-size: 13px;
  line-height: 1.5;
}
.cr-result > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
}
.cr-drawer .cr-checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(160px, 45%);
  gap: 10px;
  align-items: center;
}
.cr-drawer .cr-checks li > span,
.cr-drawer .cr-checks li > strong {
  width: auto;
  max-width: none;
  white-space: normal;
}
.cr-drawer .cr-checks li > 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%;
}
.cr-drawer .cr-checks li strong {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
}
.cr-drawer .cr-checks li[data-tone='bad'] strong,
.cr-drawer .cr-checks li[data-tone='warn'] strong {
  color: var(--tone);
  font-weight: 600;
}
.cr-glossary {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}
.cr-glossary > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
}
.cr-glossary dt {
  font-weight: 700;
}
.cr-glossary dd {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  ol.cr-agents,
  .cr-workspace .cr-metrics {
    grid-template-columns: 1fr;
  }
  .cr-glossary > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .cr-drawer .cr-checks li {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .cr-drawer .cr-checks li strong {
    grid-column: 2;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cr-verdict-card,
  .cr-progress i {
    transition: none;
  }
}
