.court-sheet, .player-sheet {
  --sheet-pad: clamp(1.1rem, 3.2vw, 2.1rem);
  width: min(100%, 44rem);
  min-width: 0;
  margin: clamp(1.25rem, 4vw, 3.1rem) auto;
  overflow: hidden;
  color: var(--navy);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.court-sheet-head {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  padding: var(--sheet-pad); color: white; background: var(--navy);
  border-bottom: 3px solid var(--blue);
}
.court-heading-text { min-width: 0; overflow-wrap: anywhere; }
.court-sheet-head h1 {
  margin: .3rem 0 0; color: white; font: 800 clamp(2.2rem, 5vw, 3.5rem)/1.04 Barlow, system-ui, sans-serif;
  letter-spacing: -.015em;
}
.court-heading-text > p { color: #cedfe7; font-size: .94rem; line-height: 1.45; }
.court-round {
  flex: none; margin: 0; color: var(--blue); font-weight: 800; font-size: .95rem;
  line-height: 1.5; white-space: nowrap;
}
.court-sheet-body, .court-empty, .player-sheet-body { padding: var(--sheet-pad); }
.court-sheet-body form, .court-team-row { margin: 0; }
.court-columns, .court-team-row {
  display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) clamp(4.3rem, 15vw, 5.8rem);
  column-gap: clamp(.7rem, 3vw, 2.2rem);
}
.court-columns {
  padding-bottom: .65rem; border-bottom: 1px solid #9baeb0;
  font-size: .78rem; font-weight: 800; color: #42565d; letter-spacing: .035em;
}
.court-columns > :last-child { text-align: center; }
.court-team-row { padding-block: clamp(.8rem, 2vw, 1.15rem); border-bottom: 1px solid #cbd6d5; }
.court-names { display: grid; gap: .18rem; min-width: 0; }
.court-names span { overflow-wrap: anywhere; font-size: clamp(1rem, 2.4vw, 1.17rem); font-weight: 750; line-height: 1.4; }
.court-team-row input[type="number"], .court-result {
  box-sizing: border-box; min-width: 0; width: 100%; height: 3rem; padding: .28rem;
  text-align: center; font: 800 1.8rem/1.25 Barlow, system-ui, sans-serif;
  font-variant-numeric: tabular-nums; color: var(--navy);
}
.court-result { display: grid; place-items: center; height: auto; }
.court-team-row input[type="number"] { appearance: textfield; border: 1px solid #798e94; border-radius: 5px; background: #fbfcfc; }
.court-team-row input::-webkit-inner-spin-button, .court-team-row input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.court-team-row input:focus-visible { background: white; outline: 3px solid var(--link); outline-offset: 2px; }
.court-rule, .court-state, .court-sheet-body > .venue-arrival { margin-top: 1rem; color: #394f55; line-height: 1.5; }
.court-state { color: #214f48; font-weight: 700; }
.court-actions { margin-top: clamp(1.1rem, 3vw, 1.65rem); }
.court-actions button { padding: .75rem 1.1rem; }
.player-sheet-body { display: grid; gap: clamp(1.2rem, 3.5vw, 2rem); }
.player-sheet h2 { margin: 0 0 .8rem; font: 800 clamp(1.6rem, 4vw, 2rem)/1.12 Barlow, system-ui, sans-serif; }
.player-sheet h3 { margin: 0 0 .3rem; font: 800 1.2rem/1.2 Barlow, system-ui, sans-serif; }
.player-sheet .player-match > p, .player-sheet .venue-arrival { margin-top: .75rem; line-height: 1.5; }
.player-sheet dl { display: block; margin: 0; background: transparent; }
.player-sheet dl > div { border-bottom: 1px solid #d5dfde; }
.player-sheet .player-metrics > div, .player-sheet .player-pairs > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  gap: .8rem; padding: .45rem 0;
}
.player-sheet .player-pairs > div { grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 2fr); }
.player-sheet dl dd { text-align: right; overflow-wrap: anywhere; font-weight: 750; font-variant-numeric: tabular-nums; }
.player-sheet .player-pairs dd span { display: block; }
.player-sheet table { width: 100%; border-collapse: collapse; overflow-wrap: anywhere; }
.player-sheet table th, .player-sheet table td { padding: .5rem .25rem; text-align: left; border: 0; border-bottom: 1px solid #d5dfde; }
.player-sheet table td:last-child, .player-sheet table th:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 30rem) {
  .court-actions button { width: 100%; }
  .court-sheet-head { flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
}
