.header-controls { display: grid; gap: 7px; width: 136px; flex-shrink: 0; }
.header-controls .preview-control { display: grid; grid-template-columns: 1fr; }
.header-controls label { font-size: 8px; }
.site-header { height: auto; min-height: 120px; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand-caption { max-width: 135px; line-height: 1.6; }
.club-intro { grid-template-columns: minmax(0, 1fr); }
.menu-list { max-width: 720px; border-top: 1px solid var(--line); }
.menu-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.menu-link small { margin-top: 8px; }
.menu-link > span:last-child { font-size: 28px; color: var(--green); }
.menu-link:hover h2 { text-decoration: underline; text-underline-offset: 5px; }
.brand-logo { display: block; width: 96px; height: 96px; object-fit: contain; clip-path: circle(42% at 50% 47%); transform: translateY(3px) scale(1.19); }
.header-controls select { min-height: 36px; width: 100%; }
.detail-tabs button { overflow-wrap: anywhere; padding: 8px 3px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { overflow-wrap: anywhere; }
.match-top > span:last-child { text-align: right; }
.match-top { line-height: 1.6; }
.event-info { line-height: 1.7; }
.match-bottom { padding: 6px 0; }
.event-top { flex-wrap: wrap; }
.wordmark { letter-spacing: 0; }
.auth-success { padding: 13px 15px; margin-bottom: 20px; background: #e7efe3; border: 1px solid #c9d8c2; border-radius: 4px; color: var(--green); font-size: 13px; line-height: 1.6; }
.cloud-account { max-width: 440px; padding: 24px 0; }
.cloud-account h2 { margin-bottom: 20px; }
.cloud-account > .btn { margin-top: 16px; }
.cloud-account #auth-message { font-size: 12px; color: #9a4837; }
dialog[open] .dialog-actions button:disabled { opacity: .5; }
.result-picker { display: grid; gap: 12px; }
.tournament-actions { flex-wrap: wrap; gap: 10px; }
.score-actions { display: grid; grid-template-columns: 1fr 1fr; }
.score-actions > .primary { grid-column: 1 / -1; }
.tournament-actions { display:flex; justify-content:flex-end; margin-bottom:20px; }
.player-name-link { text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.profile-heading { display: flex; align-items: center; gap: 16px; margin: 15px 0 25px; }
.profile-heading > div { min-width: 0; }
.profile-heading h1 { font-size: 30px; overflow-wrap: anywhere; }
.profile-heading > .avatar { width: 56px; height: 56px; font-size: 16px; }
.profile-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--line); }
.profile-metrics > div { padding: 18px 8px 18px 0; border-bottom: 1px solid var(--line); }
.profile-metrics dt { font-size: 10px; color: var(--muted); min-height: 28px; }
.profile-metrics dd { margin: 5px 0 0; font-size: 27px; color: var(--green); font-weight: 600; }
.profile-history { display: grid; gap: 14px; }
.history-match { border: 1px solid var(--line); border-radius: 5px; padding: 12px 15px; background: var(--surface); min-width: 0; }
.history-caption { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.history-caption > button { text-align: left; font-size: 12px; }
.history-caption .badge { flex-shrink: 0; }
.loss-badge { color: #8f463c; background: #f4e9e3; }
.history-opponent { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 16px; }
.history-opponent > strong { white-space: nowrap; font-size: 23px; font-variant-numeric: tabular-nums; }
@media(min-width:700px) { .profile-metrics { max-width: 800px; grid-template-columns: repeat(6,minmax(0,1fr)); } .profile-history { grid-template-columns: repeat(2,minmax(0,1fr)); } }
#navigation { grid-template-columns: repeat(5, minmax(0,1fr)); }
#navigation button { min-width: 0; padding-left: 2px; padding-right: 2px; }
#navigation button > span:last-child { font-size: 9px; overflow-wrap: anywhere; }
.contact-layout { display: grid; gap: 25px; }
.contact-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-row h2 { margin-bottom: 14px; }
.contact-value { display: block; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); }
.contact-action { display: inline-flex; align-items: center; margin-top: 18px; text-decoration: none; }
@media (min-width: 700px) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 60px; }
  #navigation button > span:last-child { font-size: 12px; }
}
.ranking-settings { padding: 16px 0; margin: 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.ranking-settings legend { padding: 0 0 12px; font-size: 15px; font-weight: 600; }
.tournament-ranking { max-width: 650px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 25px; }
.tournament-ranking dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.tournament-ranking dt { color: var(--muted); }
.tournament-ranking dd { margin: 0; font-weight: 600; }
.tournament-ranking .btn { margin-top: 15px; }
.leaderboard-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.leaderboard-tools label { display: grid; gap: 8px; font-size: 11px; min-width: 0; }
.leaderboard-tools input, .leaderboard-tools select { min-height: 46px; }
.ranking-rules { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 28px; font-size: 12px; }
.ranking-rules summary { cursor: pointer; padding: 16px 0; min-height: 48px; color: var(--green); }
.ranking-rules p { padding: 0 0 18px; color: var(--muted); max-width: 65ch; }
.ranking-heading { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.ranking-player { border-bottom: 1px solid var(--line); }
.ranking-player > summary { display: flex; align-items: center; gap: 9px; min-height: 88px; padding: 15px 0; cursor: pointer; list-style: none; }
.ranking-player > summary::-webkit-details-marker { display: none; }
.rank-number { width: 20px; flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-number.first { color: #896b28; font-weight: 700; }
.ranking-person { min-width: 0; flex: 1; }
.ranking-person > strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.ranking-person small { font-size: 9px; line-height: 1.7; margin-top: 6px; }
.ranking-points { font-size: 23px; color: var(--green); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ranking-points small { font-size: 9px; font-weight: 400; }
.ranking-expand { color: var(--muted); }
.ranking-player[open] .ranking-expand { transform: rotate(180deg); }
.ranking-history { padding: 10px 12px 20px; background: #edf1e9; }
.ranking-history h3 { font-size: 12px; }
.ranking-contribution { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; border-top: 1px solid #d7dfd2; }
.ranking-contribution .text-button { text-align: left; padding: 4px 0; font-size: 12px; }
.ranking-contribution small { line-height: 1.8; font-size: 10px; }
.ranking-contribution > strong { font-size: 18px; color: var(--green); }
@media (min-width: 700px) {
  .leaderboard-tools { max-width: 650px; }
  #leaderboard-rows, .ranking-rules { max-width: 800px; }
  .ranking-person > strong { font-size: 14px; }
  .ranking-person small { font-size: 11px; }
  .ranking-player > summary { gap: 18px; }
}
@media (min-width: 700px) {
  .header-controls { display: flex; width: auto; gap: 20px; }
  .header-controls .preview-control { min-width: 140px; }
  .site-header { min-height: 100px; }
}
