.ev-page {
  box-sizing: border-box;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 32px) clamp(6px, 1vw, 18px);
  container: ev-page / inline-size;
  color: #142f29;
}
.ev-page h1, .ev-intro { text-align: center; }
.ev-page h1 { margin: 0 0 .35em; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.ev-intro { margin: 0 0 1.2rem; }
#ev-rules {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(6, minmax(0, 1fr)) repeat(2, minmax(0, .72fr));
  gap: .4rem;
}

#ev-rules label {
  display: grid;
  align-content: end;
  gap: .25rem;
  font-size: .9rem;
  font-weight: 600;
}

#ev-rules select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: .35rem .2rem;
  border: 1px solid #697d73;
  border-radius: 4px;
  background: #fff;
  color: #172f29;
  font: inherit;
}

#ev-rules select:disabled {
  color: #53625d;
  background: #edf0ed;
}

@container ev-page (760px < width <= 1100px) {
  #ev-rules {
    grid-template-columns: minmax(max-content, 1.5fr) repeat(6, minmax(max-content, 1fr)) repeat(2, minmax(max-content, .72fr));
  }

  #ev-rules label { white-space: nowrap; }
}

@container ev-page (max-width: 760px) {
  #ev-rules {
    gap: .7rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container ev-page (max-width: 460px) {
  #ev-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.upcard-view { margin: 1rem 0 .65rem; padding: .55rem .65rem; border: 1px solid #a5b7a9; }
.upcard-view legend { font-weight: 700; }
#upcards { display: flex; flex-wrap: wrap; gap: .3rem; }
#upcards label {
  display: inline-flex;
  gap: .25em;
  align-items: center;
  padding: .2em .4em;
  border: 1px solid #a5b7a9;
  cursor: pointer;
}
#upcards label:has(:checked) { background: #d9eedc; border-color: #587d65; }
#table-status { margin: .55em 0; font-size: .88em; }
#table-status:empty { margin: 0; }
.ev-scroll { overflow-x: auto; margin: 1rem 0; }
.ev-page table { width: 100%; border-collapse: collapse; background: #fff; font-variant-numeric: tabular-nums; }
.ev-page caption { background: #244a3d; color: white; padding: .55em; font-weight: 700; text-align: left; }
.ev-page th, .ev-page td { border: 1px solid #c4d1c7; padding: .35em .55em; text-align: right; white-space: nowrap; }
.ev-page th:first-child { text-align: left; }
.ev-page thead, .ev-page tr:nth-child(even) { background: #f0f5ef; }
.ev-page .best { background: #c9eed5; color: #103d26; font-weight: 700; }
