.results-heading {
  margin-top: 24px;
  margin-bottom: 6px;
}
.sheet-hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}
.sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-height: 70vh;
  overflow: auto;
  --rank-width: 42px;
  --team-width: 52px;
  --name-width: 118px;
}
.sheet table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: 100%;
  min-width: 930px;
  font-variant-numeric: tabular-nums;
}
.sheet .rank-col { width: var(--rank-width); }
.sheet .team-col { width: var(--team-width); }
.sheet .name-col { width: var(--name-width); }
.sheet :is(th, td) {
  background: #fff;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px 7px;
}
.sheet thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--soft);
  font-size: 14px;
  height: 38px;
}
.sheet thead tr:nth-child(2) th { top: 38px; }
.sheet thead th[scope=colgroup] { font-size: 13px; }
.sheet thead .project-0 { background: var(--hk-light); }
.sheet thead .project-1 { background: #f4e3f0; }
.sheet thead .project-2 { background: var(--sh-light); }
.sheet tbody tr:nth-child(even) > * { background: #fbf7fc; }
.sheet .sheet-rank, .sheet .sheet-team, .sheet .sheet-name {
  position: sticky;
  z-index: 1;
}
.sheet thead :is(.sheet-rank, .sheet-team, .sheet-name) { z-index: 3; }
.sheet .sheet-rank {
  left: 0;
  width: var(--rank-width);
  min-width: var(--rank-width);
  padding-inline: 2px;
}
.sheet .sheet-team {
  left: var(--rank-width);
  width: var(--team-width);
  min-width: var(--team-width);
  padding-inline: 3px;
}
.sheet .sheet-name {
  left: calc(var(--rank-width) + var(--team-width));
  width: var(--name-width);
  min-width: var(--name-width);
  text-align: left;
  font-size: 14px;
  box-shadow: 3px 0 7px #35214414;
}
.sheet-rank small { display: block; font-size: 11px; color: var(--muted); }
.sheet .sheet-total { font-weight: 750; color: var(--accent-deep); }
.sheet-entry {
  box-shadow: var(--shadow);
  max-width: 560px;
  padding: 14px;
  margin-top: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.entry-picker { display: grid; gap: 6px; margin-bottom: 10px; font-weight: 650; }
.entry-row {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 4px 12px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.entry-row label { font-weight: 600; }
.entry-row input {
  width: 100%;
  height: 44px;
  border: 1px solid #cdbed5;
  border-radius: 7px;
  background: white;
  text-align: center;
  font-size: 17px;
}
.entry-row input[aria-invalid=true] { border-color: #a64836; }
.entry-conflict { grid-column: 1 / -1; color: #a64836; }
.entry-save {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 9px 0 max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 480px) {
  .sheet { --rank-width: 35px; --team-width: 46px; --name-width: 93px; }
  .sheet .sheet-name { white-space: normal; }
}
