.controlled-date-expansion {
  position: relative;
  overflow: hidden;
}

.controlled-date-expansion::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0b6b4d, #9bd438 58%, #e4efc7);
}

.date-expansion-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.date-expansion-summary article,
.date-round-grid article {
  border: 1px solid #d9dfd7;
  border-radius: 18px;
  background: #fbfcf8;
  padding: 16px;
}

.date-expansion-summary span,
.date-round-grid span {
  display: block;
  color: #6b756f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.date-expansion-summary strong {
  display: block;
  margin-top: 7px;
  color: #071c15;
  font-family: Manrope, sans-serif;
  font-size: 19px;
}

.date-expansion-summary small,
.date-round-grid small {
  display: block;
  margin-top: 5px;
  color: #64716a;
  line-height: 1.45;
}

.date-round-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.date-round-grid article {
  min-height: 148px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.date-round-grid article.selected {
  border-color: #0b6b4d;
  background: #f2f7ea;
  box-shadow: 0 0 0 3px rgba(11,107,77,.08);
}

.date-round-grid article.loaded {
  border-color: #a8cf63;
  background: #f4f9e7;
}

.date-round-grid strong {
  display: block;
  margin-top: 9px;
  color: #0a2119;
  line-height: 1.35;
}

.date-round-grid em {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  background: #e8ede7;
  padding: 5px 9px;
  color: #385047;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.date-round-grid article.loaded em {
  background: #dceeba;
  color: #295010;
}

.date-expansion-actions {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto minmax(260px, auto);
}

.date-expansion-actions > small {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .date-expansion-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .date-expansion-summary,
  .date-round-grid,
  .date-expansion-actions {
    grid-template-columns: 1fr;
  }

  .date-round-grid article {
    min-height: 0;
  }

  .date-expansion-actions .btn {
    width: 100%;
  }
}
