/* Final coach/challenge surface — matches the paper, ink, and orange TennisRank system. */
:root{
  --coach-paper:#fafbf9;
  --coach-surface:#fff;
  --coach-ink:#20211f;
  --coach-muted:#676b63;
  --coach-line:#dedfdb;
  --coach-line-strong:#b9bdb3;
  --coach-orange:#ff7657;
  --coach-orange-dark:#d8492b;
  --coach-soft:#eff1eb;
  --coach-warn:#fff4e6;
}

body .challenge-center,
body .coach-ladder-console,
body main#top>section.challenge-center,
body main#top>section.coach-ladder-console{
  width:calc(100% - 120px)!important;
  max-width:1500px!important;
  margin:0 auto 72px!important;
  padding:58px 0 70px!important;
  color:var(--coach-ink)!important;
  background:transparent!important;
  border:0!important;
  border-top:1px solid var(--coach-line)!important;
  border-radius:0!important;
  box-shadow:none!important;
}

body .challenge-center-head,
body .coach-console-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(320px,520px)!important;
  align-items:end!important;
  gap:48px!important;
  margin:0 0 30px!important;
  padding:0 0 26px!important;
  border-bottom:1px solid var(--coach-line)!important;
}

body .challenge-center h3,
body .coach-ladder-console h3{
  margin:7px 0 0!important;
  color:var(--coach-ink)!important;
  font-family:'Court Grotesk',Arial,sans-serif!important;
  font-size:clamp(34px,4vw,58px)!important;
  font-weight:400!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
}

body .challenge-center-head p,
body .coach-console-head p,
body .challenge-empty,
body .coach-empty{
  max-width:none!important;
  margin:0!important;
  color:var(--coach-muted)!important;
  font-size:13px!important;
  line-height:1.6!important;
}

body .coach-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 26px!important;
  padding:0!important;
  border:0!important;
}

body .coach-tab{
  min-height:46px!important;
  padding:0 16px!important;
  color:var(--coach-ink)!important;
  background:transparent!important;
  border:1px solid var(--coach-line-strong)!important;
  border-radius:0!important;
  box-shadow:none!important;
  font:11px/1 ui-monospace,Consolas,monospace!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}

body .coach-tab:hover{background:#f0f2eb!important}
body .coach-tab[aria-selected="true"]{
  color:var(--coach-ink)!important;
  background:var(--coach-orange)!important;
  border-color:var(--coach-orange)!important;
}
body .coach-panel[hidden]{display:none!important}

body .challenge-list,
body .approval-list,
body .coach-roster-list{
  border-top:1px solid var(--coach-line)!important;
}

body .challenge-item,
body .approval-item,
body .coach-roster-row{
  min-height:84px!important;
  color:var(--coach-ink)!important;
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid var(--coach-line)!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:14px 0!important;
}
body .challenge-item:hover,
body .approval-item:hover,
body .coach-roster-row:hover{background:#f3f4ef!important}

body .challenge-title,
body .approval-title,
body .coach-roster-name{
  color:var(--coach-ink)!important;
  font-size:15px!important;
  font-weight:500!important;
}
body .challenge-meta,
body .approval-meta,
body .coach-roster-meta{
  margin-top:5px!important;
  color:var(--coach-muted)!important;
  font-size:12px!important;
  line-height:1.45!important;
}

body .coach-rank-number{
  color:var(--coach-orange-dark)!important;
  font:18px/1 ui-monospace,Consolas,monospace!important;
}

body .coach-status-select,
body .coach-rank-input{
  min-height:44px!important;
  color:var(--coach-ink)!important;
  background:#fff!important;
  border:1px solid var(--coach-line-strong)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body .coach-status-select{padding:0 34px 0 12px!important}
body .coach-rank-input{width:78px!important;padding:0 10px!important;font-variant-numeric:tabular-nums!important}
body .coach-status-select:focus,
body .coach-rank-input:focus{
  border-color:var(--coach-orange)!important;
  box-shadow:0 0 0 2px rgba(255,118,87,.14)!important;
  outline:0!important;
}
body .coach-rank-input[aria-invalid="true"],
body .coach-status-select[aria-invalid="true"]{
  border-color:#b74736!important;
  background:#fff6f3!important;
}

body .coach-action,
body .challenge-action,
body .ladder-challenge-button{
  min-height:44px!important;
  padding:0 15px!important;
  color:var(--coach-ink)!important;
  background:transparent!important;
  border:1px solid var(--coach-line-strong)!important;
  border-radius:0!important;
  box-shadow:none!important;
  font:11px/1 ui-monospace,Consolas,monospace!important;
  letter-spacing:.045em!important;
  text-transform:uppercase!important;
}
body .coach-action:hover,
body .challenge-action:hover,
body .ladder-challenge-button:hover{background:#eceee8!important;border-color:var(--coach-ink)!important}
body .coach-action.primary,
body .challenge-action.primary{
  color:var(--coach-ink)!important;
  background:var(--coach-orange)!important;
  border-color:var(--coach-orange)!important;
}
body .coach-action.primary:hover,
body .challenge-action.primary:hover{
  color:#fff!important;
  background:var(--coach-ink)!important;
  border-color:var(--coach-ink)!important;
}
body .coach-action:disabled,
body .challenge-action:disabled,
body .coach-status-select:disabled,
body .coach-rank-input:disabled{
  cursor:wait!important;
  opacity:.5!important;
}

body .coach-roster-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
}

body .coach-seed-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 24px!important;
  padding:0 0 22px!important;
  border-bottom:1px solid var(--coach-line)!important;
}

body .coach-console-status{
  min-height:20px!important;
  margin:16px 0 0!important;
  padding-top:14px!important;
  color:var(--coach-muted)!important;
  border-top:1px solid var(--coach-line)!important;
  font-size:12px!important;
}
body .coach-console-status.error{color:#a33a2b!important}

body .challenge-status{
  color:var(--coach-muted)!important;
  font:10px/1.3 ui-monospace,Consolas,monospace!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
}
body .challenge-status.pending_coach_approval{color:var(--coach-orange-dark)!important}
body .challenge-status.verified{color:#2d7658!important}
body .challenge-status.declined,
body .challenge-status.rejected{color:#a33a2b!important}

body .challenge-dialog{
  width:min(640px,calc(100% - 28px))!important;
  max-height:min(780px,calc(100dvh - 30px))!important;
  padding:0!important;
  color:var(--coach-ink)!important;
  background:var(--coach-paper)!important;
  border:1px solid var(--coach-line)!important;
  border-radius:0!important;
  box-shadow:0 28px 90px rgba(32,33,31,.2)!important;
}
body .challenge-dialog::backdrop{background:rgba(32,33,31,.48)!important;backdrop-filter:blur(6px)!important}
body .challenge-dialog-inner{padding:30px!important}
body .challenge-dialog-top{padding-bottom:20px!important;border-bottom:1px solid var(--coach-line)!important}
body .challenge-dialog-kicker{color:var(--coach-muted)!important;font:10px/1.4 ui-monospace,Consolas,monospace!important;letter-spacing:.1em!important;text-transform:uppercase!important}
body .challenge-dialog h3{color:var(--coach-ink)!important;font-family:'Court Grotesk',Arial,sans-serif!important;font-size:clamp(32px,5vw,50px)!important;font-weight:400!important}
body .challenge-dialog-copy{color:var(--coach-muted)!important}
body .challenge-dialog-close{
  width:42px!important;height:42px!important;color:var(--coach-ink)!important;background:transparent!important;border:1px solid var(--coach-line-strong)!important;border-radius:0!important
}
body .challenge-form input,
body .challenge-form select,
body .challenge-form textarea{
  color:var(--coach-ink)!important;
  background:#fff!important;
  border:1px solid var(--coach-line-strong)!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body .challenge-form input:focus,
body .challenge-form select:focus,
body .challenge-form textarea:focus{border-color:var(--coach-orange)!important;box-shadow:0 0 0 2px rgba(255,118,87,.14)!important;outline:0!important}

body .workflow-toast{
  right:20px!important;
  bottom:20px!important;
  width:min(420px,calc(100vw - 40px))!important;
  padding:14px 16px!important;
  color:var(--coach-ink)!important;
  background:var(--coach-paper)!important;
  border:1px solid var(--coach-line)!important;
  border-left:4px solid var(--coach-orange)!important;
  border-radius:0!important;
  box-shadow:0 16px 50px rgba(32,33,31,.14)!important;
}
body .workflow-toast.error{border-left-color:#a33a2b!important}

@media(max-width:980px){
  body .challenge-center,
  body .coach-ladder-console,
  body main#top>section.challenge-center,
  body main#top>section.coach-ladder-console{width:calc(100% - 50px)!important;padding:46px 0 58px!important}
  body .challenge-center-head,
  body .coach-console-head{grid-template-columns:1fr!important;gap:18px!important}
  body .coach-roster-row{grid-template-columns:52px minmax(0,1fr) 130px!important}
  body .coach-roster-actions{grid-column:2 / -1!important;justify-content:flex-start!important}
}

@media(max-width:620px){
  body .challenge-center,
  body .coach-ladder-console,
  body main#top>section.challenge-center,
  body main#top>section.coach-ladder-console{width:calc(100% - 36px)!important;padding:38px 0 52px!important;margin-bottom:44px!important}
  body .coach-tabs{display:grid!important;grid-template-columns:1fr 1fr!important}
  body .coach-tab{padding:0 8px!important;font-size:9px!important}
  body .coach-roster-row{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:16px 0!important}
  body .coach-status-select{grid-column:2!important;width:100%!important}
  body .coach-roster-actions{grid-column:1 / -1!important;display:grid!important;grid-template-columns:78px 1fr!important;width:100%!important}
  body .coach-rank-input{width:100%!important}
  body .coach-roster-actions .coach-action{width:100%!important}
  body .challenge-dialog-inner{padding:22px!important}
  body .workflow-toast{right:12px!important;bottom:78px!important;width:calc(100vw - 24px)!important}
}
