#ctv-lake-rank {
  box-sizing: border-box;
  width: min(380px, calc(100% - 24px));
  max-height: min(660px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid #8bc6eb;
  border-radius: 14px;
  background: linear-gradient(165deg, #e3f4ff, #f8fcff 75%);
  color: #15364f;
  box-shadow: 0 12px 36px #071a3190;
  font: 14px/1.4 system-ui, sans-serif;
  overflow: auto;
}
#ctv-lake-rank::backdrop { background: #07182799; }
#ctv-lake-rank .ctv-match-header { position: sticky; top: 0; }
#ctv-lake-rank-close {
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: white;
  background: #ffffff23;
  font: 700 24px/1 system-ui, sans-serif;
  cursor: pointer;
}
.ctv-lake-rank-body { display: grid; gap: 10px; padding: 14px; }
.ctv-lake-rank-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ctv-lake-rank-periods button {
  min-height: 37px;
  border: 1px solid #8fb7cd;
  border-radius: 7px;
  background: #f4fbff;
  color: #173c56;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ctv-lake-rank-periods button[aria-pressed="true"] { background: #245c81; color: white; }
#ctv-lake-rank-dates, #ctv-lake-rank-status { margin: 0; color: #456985; }
#ctv-lake-rank-dates { font-size: 12px; text-align: center; }
#ctv-lake-rank-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
#ctv-lake-rank-table th, #ctv-lake-rank-table td { padding: 7px 4px; border-bottom: 1px solid #bfd8e7; }
#ctv-lake-rank-table th { color: #245675; }
#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; overflow-wrap: anywhere; max-width: 122px; }
#ctv-lake-rank-table :is(th, td):nth-child(n+3) { text-align: right; white-space: nowrap; }
#ctv-lake-rank-table .mine { background: #dbf0f8; font-weight: 700; }
