.af-historico-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.af-historico-item {
  position: relative;

  padding: 24px;

  border-radius: 24px;

  background: #ffffff;

  border: 1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 12px 30px rgba(0,0,0,0.05);
}

.af-historico-item h3 {
  margin: 18px 0 14px;

  font-size: 20px;
  line-height: 1.3;

  color: #1d1d1f;
}

.af-historico-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 18px;
}

.af-historico-tags span {
  padding: 8px 12px;

  border-radius: 999px;

  background: #f5f5f7;

  font-size: 13px;
  color: #444;
}

.af-historico-info p {
  margin: 8px 0;

  color: #6e6e73;
  font-size: 14px;
}

.af-historico-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 70px;
  height: 70px;

  border-radius: 50%;

  font-size: 20px;
  font-weight: 700;
}

.af-score-baixo {
  background:
    rgba(52,199,89,.12);

  color: #1f8f45;
}

.af-score-medio {
  background:
    rgba(255,159,10,.12);

  color: #c77700;
}

.af-score-alto {
  background:
    rgba(255,59,48,.12);

  color: #d60000;
}
.af-modal-overlay {
  position: fixed;
  inset: 0;

  background:
    rgba(0,0,0,.55);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  z-index: 99999;
}

.af-modal {
  width: 100%;
  max-width: 900px;

  max-height: 90vh;
  overflow-y: auto;

  padding: 36px;

  border-radius: 32px;

  background: #fff;

  position: relative;
}

.af-modal-close {
  position: absolute;

  top: 20px;
  right: 20px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: #f5f5f7;

  cursor: pointer;

  font-size: 24px;
}

.af-modal h2 {
  margin-bottom: 24px;

  font-size: 32px;
  line-height: 1.2;
}

.af-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-bottom: 24px;
}

.af-modal-tags span {
  padding: 10px 14px;

  border-radius: 999px;

  background: #f5f5f7;

  font-size: 14px;
}

.af-modal-box {
  margin-top: 24px;

  padding: 24px;

  border-radius: 24px;

  background: #f8f9fb;

  border: 1px solid rgba(0,0,0,.05);
}

.af-modal-box h3 {
  margin-bottom: 16px;

  font-size: 20px;
}

.af-modal-box p {
  margin: 12px 0;

  line-height: 1.7;

  color: #4a4a4a;
}