#ctv-lake-rank { width: min(470px, calc(100% - 20px)); }
.ctv-lake-rank-body {
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 13px;
  overflow: auto;
  overscroll-behavior: contain;
}
.ctv-lake-rank-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.ctv-lake-rank-periods button {
  min-height: 38px;
  border: 1px solid #87b0c5;
  border-radius: 7px;
  background: linear-gradient(#f8fdff, #dcecf6);
  color: #1e455d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ctv-lake-rank-periods button[aria-pressed="true"] {
  border-color: #bd9249;
  background: linear-gradient(#fff0bb, #e8b95e);
  color: #3f2c12;
}
#ctv-lake-rank-dates, #ctv-lake-rank-status { margin: 0; color: #3b5e73; }
#ctv-lake-rank-dates { font-size: 12px; text-align: center; }
#ctv-lake-rank-status {
  padding: 18px 8px;
  border: 1px solid #a9c9d9;
  border-radius: 9px;
  background: #eef9fd;
  text-align: center;
}
#ctv-lake-rank-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #8eb4cb;
  border-radius: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
#ctv-lake-rank-table th, #ctv-lake-rank-table td { padding: 7px 6px; overflow-wrap: anywhere; }
#ctv-lake-rank-table th {
  color: #e9f7ff;
  background: #164962;
  font-size: 11px;
}
#ctv-lake-rank-table td { border-top: 1px solid #bed8e5; background: #eff9fc; }
#ctv-lake-rank-table tbody tr:nth-child(even) td { background: #e2f1f8; }
#ctv-lake-rank-table :is(th, td):first-child { text-align: center; }
#ctv-lake-rank-table :is(th, td):nth-child(2) { text-align: left; }
#ctv-lake-rank-table :is(th, td):nth-child(n+3) { text-align: right; }
#ctv-lake-rank-table th:nth-child(1) { width: 14%; }
#ctv-lake-rank-table th:nth-child(2) { width: 42%; }
#ctv-lake-rank-table th:nth-child(3) { width: 26%; }
#ctv-lake-rank-table th:nth-child(4) { width: 18%; }
#ctv-lake-rank-table .mine td { background: #cae8ed; font-weight: 700; }
.ctv-lake-place {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding-inline: 2px;
  border-radius: 6px;
  background: #d4e8f5;
  color: #1e4b68;
  font-size: 12px;
  font-weight: 750;
}
.ctv-lake-place[data-place="1"] { background: #f9dc92; color: #614619; }
.ctv-lake-place[data-place="2"] { background: #cedde5; color: #294b60; }
.ctv-lake-place[data-place="3"] { background: #ebc3a4; color: #633c22; }
