/* Athlete and team selection stays in the Coaching tab. */
.co-inline-picker{min-width:0}
.co-picker-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:var(--section-space)}
.co-picker-heading h2{flex:1;margin:0;font:800 var(--section-title-size)/1.3 var(--display);letter-spacing:-.5px}
.co-picker-heading .co-roster-search{flex-basis:100%;max-width:none;width:100%;margin:0}
.co-picker-heading [hidden]{display:none}
.co-inline-picker .co-team-filter{max-width:480px;margin-bottom:16px}
.co-inline-picker .co-picker-list{max-height:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.co-inline-picker .co-athlete-row{width:100%;min-width:0;min-height:72px;padding:var(--card-space);border:1px solid var(--frame,#fff);border-radius:var(--radius);background:var(--white);color:var(--ink)}
.co-inline-picker .co-athlete-row:hover{border-color:var(--red)}
.co-inline-picker .co-athlete-row.is-active{background:var(--red);border-color:var(--red);color:var(--white);border:0}
.co-inline-picker .co-athlete-row-text strong{font-size:var(--text-body);line-height:1.4}
.co-inline-picker .co-athlete-row-text small{font-size:var(--text-label);color:var(--muted)}
.co-inline-picker .co-athlete-row.is-active :is(small,svg){color:inherit}
.co-inline-picker .co-roster-search{border-color:var(--line);border-radius:7px;background:var(--white);color:var(--muted);min-height:var(--control-height)}
.co-inline-picker .co-roster-search:focus-within{border-color:var(--red);outline:1px solid var(--red)}
.co-inline-picker .co-picker-footer{margin-top:var(--card-space);padding-top:var(--card-space);border-color:var(--line)}
.co-inline-picker .co-athlete-row-text{min-width:0}
.co-inline-picker .co-athlete-row-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.co-athlete-summary{background:#111;color:#fff;padding:20px;margin:0;min-width:0;border-radius:7px}
.co-athlete-summary .co-workspace-heading{gap:16px;margin:0;color:#fff;align-items:flex-start}
.co-profile-avatar{display:grid;place-items:center;width:76px;height:76px;flex:none;border-radius:50%;background:#f2f2f2;color:var(--ink,#111);overflow:hidden;font:800 24px/1 var(--display)}
.co-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.co-athlete-summary .co-workspace-identity{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.co-athlete-summary .co-workspace-heading h2{font-size:clamp(23px,2.6vw,32px);line-height:1.15;letter-spacing:-.5px}
.co-athlete-summary .co-profile-position{margin:2px 0 0;font:400 var(--text-label)/1.4 var(--font);color:#d0d0d0;overflow-wrap:anywhere}
.co-profile-club{font-size:var(--text-label);line-height:1.35;color:#d0d0d0;min-width:0}
.co-profile-club .calendar-context-link{color:inherit;font:inherit;text-align:left;padding:0;min-height:24px;white-space:normal}
.co-profile-club button.calendar-context-link:hover{text-decoration:underline;color:#fff}
.co-athlete-summary .co-workspace-tools{justify-content:flex-start;gap:4px;margin:6px 0 0 -10px}
.co-athlete-summary .co-workspace-tools .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:7px;background:transparent;color:#fff;text-decoration:none;box-shadow:none}
.co-athlete-summary .co-workspace-tools .icon-btn:is(:hover,:active){background:transparent;border:0;color:#fff;transform:none;box-shadow:none}
.co-contact-message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;color:var(--muted,#666)}
.co-athlete-summary :is(button,a,summary):focus-visible{outline:2px solid #fff;outline-offset:2px}
.co-profile-delete{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
@media(max-width:640px){
 .co-inline-picker .co-picker-list{grid-template-columns:minmax(0,1fr)}
 .co-page .co-workspace-heading{gap:8px}
 .co-page .co-workspace-heading h2{font-size:22px}
 .co-page .co-workspace-tools{gap:2px}
 .co-page .co-workspace-tools .icon-btn{width:44px;height:44px}
 .co-athlete-summary .co-workspace-heading{gap:12px}
 .co-profile-avatar{width:62px;height:62px;font-size:21px}
 .co-athlete-summary .co-workspace-heading h2{font-size:22px}
}
@media print{.co-athlete-summary .co-workspace-tools{display:none}.co-athlete-summary{padding:0}}

.co-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.co-workspace-gate.is-selected {
  padding: 0 0 20px;
}

.co-workspace-gate.is-selected .co-dashboard-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.co-dashboard-actions .btn {
  min-height:var(--control-height,44px);
  padding-inline: 12px;
  font-size: var(--text-label);
  font-weight: 600;
}

.co-dashboard-actions svg {
  flex-shrink: 0;
}

.co-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.co-profile-image {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.co-profile-brand,
.co-profile-season {
  min-width: 0;
  margin: 16px 0;
  padding: 0 var(--card-space) var(--card-space);
  border:1px solid var(--frame,#fff);
  border-radius: var(--radius);
}

.co-profile-brand legend {
  padding: 0 4px;
  font-weight: 700;
  font-size: var(--text-body);
  color: var(--ink);
}

.co-profile-season .co-season-edit-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.co-profile-image img {
  display: block;
  width: 64px;
  height: 64px;
  border:1px solid var(--frame,#fff);
  border-radius: 7px;
  object-fit: cover;
}

.co-profile-image.is-logo img {
  width: min(160px, 100%);
  object-fit: contain;
}

.co-profile-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--control-height);
  font-size: var(--text-label);
  color: var(--muted);
}

.co-profile-error {
  color: var(--red-dark);
  font-weight: 600;
}

.co-picker-footer {
  flex-wrap: wrap;
  gap: 8px;
}

.co-profile-season-history {
  margin-top: 12px;
}

.co-profile-season-history .co-assessment-archive {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .co-dashboard-actions {
    gap: 10px;
  }

  .co-workspace-gate.is-selected .co-dashboard-actions,
  .co-profile-season .co-season-edit-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 380px) {
  .co-profile-season .co-season-edit-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
