.stand-bar, .stand-content, .stand-nav { max-width: 1248px; }
.stand-bar .wordmark { padding: 0; align-self: center; }
#session-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 12px; }
#session-bar .mk-btn { min-height: 44px; }
.stand-content { padding-bottom: 32px; }
.stand-login { display: grid; justify-items: start; gap: 12px; max-width: 590px; }
.stand-login select, .stand-login input { width: 100%; }
.stand-nav { margin: 0 auto; display: flex; gap: 6px; padding: 0 clamp(24px, 3vw, 48px) 10px; }
.stand-nav[hidden] { display: none; }
.stand-nav a { display: grid; place-items: center; min-height: 44px; padding: 4px 12px; border-radius: var(--mk-radius-control); color: var(--mk-muted); text-decoration: none; white-space: nowrap; }
.stand-nav a[aria-current] { color: var(--gold); background: var(--mk-selected); font-weight: 700; }
.stand-nav a:hover { background: var(--mk-control-hover); }
.read-pagination, .read-counts { margin-top: 10px; }
.stand-title .mk-btn { flex: none; }
.stand-back { margin-block-end: -9px; }
.stand-featured { grid-template-columns: minmax(0, 1fr); }
.stand-featured .featured-info { max-width: 680px; }
.stand-featured .event-meta { margin-bottom: 16px; }
.stand-featured .mk-actions { margin-top: 12px; }
.stand-featured .court { opacity: .6; }
.stand-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.stand-roster-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.stand-profile { display: flex; align-items: flex-start; gap: 22px; padding: clamp(18px, 3vw, 30px); }
.stand-profile h1 { font-size: clamp(1.375rem, 3vw, 2.25rem); overflow-wrap: anywhere; }
.stand-profile .stand-avatar-large { width: 78px; height: 78px; font-size: 1.5rem; }
.stand-identity { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 18px; }
.stand-identity dt { color: var(--mk-muted); font-size: .875rem; margin-bottom: 4px; }
.stand-identity dd { font-weight: 650; }
.stand-note { margin-top: 10px; font-size: .875rem; }
.stand-stat-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stand-stat-filters :is(select, input) { width: 100%; max-width: 100%; }
.stand-period { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stand-stat-actions { align-self: end; }
.stand-stat-filters .stand-error { grid-column: 1 / -1; font-size: .875rem; }
.stand-stat-filters .stand-error:empty { display: none; }
.stand-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stand-metrics .stat:hover { background: var(--panel); }
.stand-stat-note { font-size: .875rem; margin-top: -8px; }
.stand-stat-switch { display: none; }
.stand-stat-single { grid-template-columns: minmax(0, 1fr); }
.stand-result-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  padding: 12px 6px; min-height: 58px; border-radius: var(--mk-radius-control);
  text-decoration: none; color: var(--mk-ink);
}
.stand-result-row > span:first-child { min-width: min(100%, 135px); overflow-wrap: anywhere; }
.stand-result-row small { display: block; color: var(--mk-muted); margin-top: 3px; }
.stand-result-row:hover { color: var(--mk-ink); background: var(--mk-card-hover); }
.stand-result-row .avatar { width: 32px; height: 32px; }
.stand-filters { margin-top: 16px; }
.stand-filters label { flex: 1; min-width: 135px; }
.stand-filters select { width: 100%; }
.stand-day-label { padding: 8px 0 0; }
.stand-event-title { letter-spacing: var(--mk-tracking-card); }
.stand-event-state { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.stand-details { display: grid; gap: 10px; }
.stand-details dl { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.stand-details dt { color: var(--mk-muted); font-size: .875rem; }
.stand-details dd { font-weight: 700; }
.stand-participant { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(140px, 1fr) minmax(150px, 1.2fr); align-items: center; gap: 6px 12px; padding: 12px 8px; min-height: 60px; }
.stand-participant small { color: var(--mk-muted); }
.stand-participant .name { font-weight: 700; }
.stand-feedback { min-height: 1.5em; }
.stand-error { color: var(--rose); }
.stand-content[aria-busy="true"] .panel { opacity: .65; }
@media (max-width: 760px) {
  .stand-bar { min-height: 65px; }
  .stand-bar .wordmark { font-size: 1.0625rem; }
  #session-bar { gap: 4px; }
  #session-bar .organisation { display: none; }
  #session-bar .mk-btn { padding: 4px 8px; }
  .stand-title .mk-btn { min-height: 44px; }
  .stand-nav { flex-wrap: wrap; gap: 2px; padding: 0 10px 8px; }
  .stand-nav a { padding-inline: 3px; flex: 1 1 auto; font-size: .8125rem; }
  .player-row .stand-position { padding-left: 0; }
  .stand-participant { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-inline: 4px; }
  .stand-participant .pills { grid-row: 1 / span 2; grid-column: 2; justify-content: flex-end; }
  .stand-event-state { justify-content: flex-start; }
  .stand-title { flex-wrap: wrap; align-items: start; }
  .stand-featured .court { opacity: .32; }
  .stand-split { grid-template-columns: minmax(0, 1fr); }
  .stand-profile { gap: 14px; }
  .stand-profile .stand-avatar-large { width: 46px; height: 46px; font-size: 1rem; }
  .stand-identity { gap: 10px 18px; margin-top: 12px; }
  .stand-stat-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stand-stat-filters > label:nth-child(3) { grid-column: 1 / -1; }
  .stand-period { gap: 10px; }
  .stand-stat-actions { grid-column: 1 / -1; }
  .stand-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stand-stat-switch { display: flex; gap: 8px; }
  .stand-stat-switch .mk-btn { flex: 1; }
  .stand-stat-switch .mk-btn[aria-pressed="true"] { color: var(--gold); }
  .stand-stat-results[data-view="events"] #stats-by-player,
  .stand-stat-results[data-view="players"] #stats-by-event { display: none; }
  .stand-result-row { padding-inline: 2px; }
}
