.v3-athlete-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 16px;
    touch-action: manipulation;
}

.v3-athlete-modal.is-open {
    display: grid;
    place-items: center;
}

.v3-athlete-modal-backdrop {
    position: absolute;
    inset: 0;
    background: oklch(0.08 0.014 220 / 0.74);
}

.v3-athlete-modal-panel {
    width: min(1080px, calc(100vw - 32px));
    max-height: min(calc(var(--v3-viewport-height) - 48px), 860px);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--v3-app-border, var(--v3-border));
    border-radius: 16px;
    color: var(--v3-app-text, var(--v3-text));
    background: color-mix(in oklch, var(--v3-app-panel, var(--v3-surface)) 96%, var(--v3-brand-rail));
    box-shadow: 0 28px 80px oklch(0.08 0.014 220 / 0.42);
}

.v3-athlete-modal-panel:focus {
    outline: none;
}

.v3-athlete-modal-panel .v3-athletes-detail-header {
    min-width: 0;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--v3-app-border, var(--v3-border));
    padding: 9px 14px 8px;
}

.v3-athlete-modal-gauge {
    min-width: 0;
    width: 150px;
    height: 96px;
    position: relative;
    align-self: center;
    --v3-score-status-color: var(--v3-neutral-grey);
}

.v3-score-block--tone-good {
    --v3-score-status-color: var(--v3-score-good, var(--v3-athletic-green));
}

.v3-score-block--tone-watch {
    --v3-score-status-color: var(--v3-score-below, var(--v3-alert-amber));
}

.v3-score-block--tone-concern {
    --v3-score-status-color: var(--v3-score-critical, var(--v3-danger-red));
}

.v3-athlete-modal-gauge canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.v3-athlete-modal-identity {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 6px;
}

.v3-athlete-modal-title h2,
.v3-athlete-modal-section h3 {
    margin: 0;
    color: var(--v3-app-text, var(--v3-text));
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.v3-athlete-modal-title h2 {
    font-family: var(--v3-font-display);
    font-size: 23px;
    line-height: 1.1;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.v3-athlete-modal-title p {
    min-width: 0;
    margin: 5px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.v3-athlete-modal-availability {
    color: var(--v3-score-good, var(--v3-athletic-green));
    font-weight: 800;
}

.v3-athlete-modal-availability--unavailable {
    color: var(--v3-score-critical, var(--v3-danger-red));
}

.v3-athlete-modal-availability--sick,
.v3-athlete-modal-availability--excused {
    color: var(--v3-score-below, var(--v3-alert-amber));
}

.v3-athlete-modal-availability--injured {
    color: var(--v3-score-critical, var(--v3-danger-red));
}

.v3-athlete-modal-coach-read {
    min-width: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
}

.v3-athlete-modal-coach-read .v3-icon {
    margin-top: 1px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: 13px;
}

.v3-athlete-modal-coach-read--amber .v3-icon {
    color: var(--v3-alert-amber);
}

.v3-athlete-modal-coach-read--red .v3-icon {
    color: var(--v3-danger-red);
}

.v3-athlete-modal-coach-read--green .v3-icon {
    color: var(--v3-athletic-green-strong);
}

.v3-athlete-modal-coach-read p {
    margin: 0;
    color: var(--v3-app-text, var(--v3-text));
    font-size: var(--v3-type-caption);
    line-height: 1.35;
    font-weight: 700;
}

.v3-athlete-chart-metrics > button,
.v3-athlete-chart-more > summary {
    min-height: 36px;
    position: relative;
    border: 0;
    color: var(--v3-app-muted, var(--v3-text-muted));
    background: transparent;
    font: inherit;
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.v3-athlete-chart-metrics > button::after,
.v3-athlete-chart-more > summary::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: -1px;
    left: 7px;
    height: 2px;
    background: transparent;
}

.v3-athlete-chart-metrics > button:hover,
.v3-athlete-chart-metrics > button:focus-visible,
.v3-athlete-chart-metrics > button.is-active,
.v3-athlete-chart-more > summary:hover,
.v3-athlete-chart-more > summary:focus-visible,
.v3-athlete-chart-more.is-active > summary {
    color: var(--v3-app-text, var(--v3-text));
}

.v3-athlete-chart-metrics > button.is-active::after,
.v3-athlete-chart-more.is-active > summary::after {
    background: var(--v3-athletic-green-strong);
}

.v3-athlete-chart-metrics button:focus-visible,
.v3-athlete-chart-more > summary:focus-visible,
.v3-checkin-metric:focus-visible {
    outline: none;
    box-shadow: var(--v3-focus-ring);
}

.v3-athlete-modal-close {
    position: static;
    align-self: start;
    justify-self: end;
}

.v3-athlete-modal-body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(548px, 1.05fr) minmax(390px, 0.95fr);
    grid-auto-rows: max-content;
    align-content: start;
    gap: 14px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px 18px 16px;
}

.v3-athlete-modal-section,
.v3-athlete-modal-context {
    min-width: 0;
}

.v3-athlete-modal-section-header {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.v3-athlete-modal-section-header > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v3-athlete-modal-section-header > div > .v3-icon {
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: 14px;
}

.v3-athlete-modal-section-header > span,
.v3-athlete-modal-section-header > strong {
    margin: 0;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1.25;
    font-weight: 700;
    text-align: right;
}

.v3-athlete-metric-header-actions {
    margin-left: auto;
    gap: 10px !important;
}

.v3-checkin-metric-squad-key {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--v3-score-expected, var(--v3-signal-blue));
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.v3-checkin-metric-squad-key i {
    width: 2px;
    height: 11px;
    display: block;
    background: currentColor;
}

.v3-checkin-metric-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}

.v3-checkin-metric {
    --v3-metric-color: var(--v3-athletic-green-strong);
    min-width: 0;
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(142px, 0.95fr) minmax(92px, 1.05fr);
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--v3-app-border, var(--v3-border));
    border-top: 0;
    border-right: 0;
    border-left: 0;
    padding: 3px 0;
    color: var(--v3-app-text, var(--v3-text));
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease;
}

.v3-checkin-metric:hover,
.v3-checkin-metric.is-active {
    border-bottom-color: var(--v3-app-border-strong, var(--v3-border));
}

.v3-checkin-metric--red {
    --v3-metric-color: var(--v3-score-critical, var(--v3-danger-red));
}

.v3-checkin-metric--amber {
    --v3-metric-color: var(--v3-score-below, var(--v3-alert-amber));
}

.v3-checkin-metric--green {
    --v3-metric-color: var(--v3-score-good, var(--v3-athletic-green-strong));
}

.v3-checkin-metric--none {
    --v3-metric-color: var(--v3-neutral-grey);
}

.v3-checkin-metric-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
}

.v3-checkin-metric-label .v3-icon {
    width: 16px;
    flex: 0 0 16px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: 13px;
    text-align: center;
}

.v3-checkin-metric-label > span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.v3-checkin-metric-label strong {
    color: var(--v3-app-text, var(--v3-text));
    font-size: var(--v3-type-caption);
    line-height: 1.1;
}

.v3-checkin-metric-label small {
    color: var(--v3-metric-color);
    font-size: var(--v3-type-caption);
    line-height: 1.1;
    font-weight: 700;
}

.v3-checkin-metric.is-active .v3-checkin-metric-label .v3-icon {
    color: var(--v3-app-text, var(--v3-text));
}

.v3-checkin-metric-track {
    width: 100%;
    height: 42px;
    position: relative;
    display: block;
}

.v3-checkin-metric-track::before {
    content: "";
    height: 6px;
    position: absolute;
    inset: 15px 0 auto;
    border-radius: 999px;
    background: var(--v3-app-panel-muted, var(--v3-surface-soft));
}

.v3-checkin-metric-track > i {
    width: calc(var(--v3-athlete-progress, 0) * 10%);
    height: 6px;
    position: absolute;
    inset: 15px auto auto 0;
    display: block;
    border-radius: 999px;
    background: var(--v3-metric-color);
}

.v3-checkin-metric-track > strong {
    width: 30px;
    height: 30px;
    position: absolute;
    z-index: 2;
    top: 3px;
    left: clamp(15px, calc(var(--v3-athlete-progress, 0) * 10%), calc(100% - 15px));
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 2px solid var(--v3-app-panel, var(--v3-surface));
    border-radius: 50%;
    color: var(--v3-ink-light);
    background: var(--v3-metric-color);
    font-family: var(--v3-font-display);
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.v3-checkin-metric-track > small {
    position: absolute;
    top: 33px;
    left: clamp(10px, calc(var(--v3-squad-progress, 0) * 10%), calc(100% - 10px));
    transform: translateX(-50%);
    color: var(--v3-score-expected, var(--v3-signal-blue));
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.v3-checkin-metric-track > small::before {
    content: "";
    width: 2px;
    height: 15px;
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    background: currentColor;
}

.v3-checkin-metric-track > [hidden] {
    display: none;
}

.v3-athlete-modal-context {
    display: grid;
    align-content: start;
    gap: 14px;
}

.v3-athlete-modal-section--availability > p,
.v3-athlete-modal-empty {
    margin: 0;
    color: var(--v3-app-text, var(--v3-text));
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.v3-athlete-note-history {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--v3-space-2);
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1px 9px 7px 0;
    scrollbar-color: var(--v3-app-border-strong, var(--v3-border-strong)) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.v3-athlete-note-history.is-empty {
    max-height: none;
    overflow: visible;
    padding: 0;
}

.v3-athlete-note-history:focus-visible {
    border-radius: var(--v3-radius-control);
    outline: none;
    box-shadow: var(--v3-focus-ring);
}

.v3-athlete-note-item {
    --v3-athlete-note-surface: var(--v3-app-panel-muted, var(--v3-surface-soft));
    width: fit-content;
    max-width: 88%;
    min-width: 0;
    position: relative;
    display: grid;
    gap: 4px;
    border: 1px solid var(--v3-app-border, var(--v3-border));
    border-radius: 10px;
    padding: 8px 11px 7px 12px;
    background: var(--v3-athlete-note-surface);
}

.v3-athlete-note-item.is-latest {
    --v3-athlete-note-surface: color-mix(
        in oklch,
        var(--v3-app-panel-soft, var(--v3-surface-soft)) 84%,
        var(--v3-app-text, var(--v3-text)) 3%
    );
    border-color: var(--v3-app-border-strong, var(--v3-border-strong));
}

.v3-athlete-note-item::after {
    content: "";
    width: 9px;
    height: 9px;
    position: absolute;
    bottom: -5px;
    left: 20px;
    border-right: 1px solid var(--v3-app-border, var(--v3-border));
    border-bottom: 1px solid var(--v3-app-border, var(--v3-border));
    background: var(--v3-athlete-note-surface);
    transform: rotate(45deg);
}

.v3-athlete-note-item--coach,
.v3-athlete-note-item--coach.is-latest {
    --v3-athlete-note-surface: color-mix(
        in oklch,
        var(--v3-app-panel-muted, var(--v3-surface-soft)) 92%,
        var(--v3-athletic-green) 8%
    );
    align-self: flex-end;
    border-color: color-mix(
        in oklch,
        var(--v3-athletic-green) 34%,
        var(--v3-app-border, var(--v3-border))
    );
}

.v3-athlete-note-item--coach::after {
    right: 20px;
    left: auto;
    border-color: color-mix(
        in oklch,
        var(--v3-athletic-green) 34%,
        var(--v3-app-border, var(--v3-border))
    );
}

.v3-athlete-note-item p {
    margin: 0;
    color: color-mix(
        in srgb,
        var(--v3-app-text, var(--v3-text)) 72%,
        var(--v3-app-muted, var(--v3-text-muted))
    );
    font-size: var(--v3-type-label);
    line-height: 1.4;
    font-style: italic;
    font-weight: var(--v3-weight-regular);
    overflow-wrap: anywhere;
}

.v3-athlete-note-item.is-latest p {
    color: color-mix(
        in srgb,
        var(--v3-app-text, var(--v3-text)) 86%,
        var(--v3-app-muted, var(--v3-text-muted))
    );
}

.v3-athlete-note-item span {
    display: block;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1.2;
    font-style: normal;
    font-weight: var(--v3-weight-medium);
    text-align: right;
}

.v3-athlete-note-history > .v3-athlete-modal-muted-line {
    margin: 0;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-label);
    line-height: 1.4;
}

.v3-athlete-modal-muted-line {
    color: var(--v3-app-muted, var(--v3-text-muted)) !important;
    font-weight: var(--v3-weight-medium) !important;
}

.v3-coach-note-compose {
    margin-top: var(--v3-space-2);
}

.v3-athlete-modal-section--availability {
    padding-top: 12px;
    border-top: 1px solid var(--v3-app-border, var(--v3-border));
}

.v3-athlete-modal-section--availability > p {
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
}

.v3-availability-history {
    display: grid;
    grid-template-columns: repeat(30, minmax(4px, 1fr));
    gap: 3px;
    margin-top: 14px;
}

.v3-availability-history-day {
    width: 100%;
    height: 9px;
    display: block;
    border: 1px solid var(--v3-app-border-strong, var(--v3-border));
    border-radius: 2px;
    background: transparent;
}

.v3-availability-history-day--available {
    border-color: var(--v3-score-good, var(--v3-athletic-green));
    background: var(--v3-score-good, var(--v3-athletic-green));
}

.v3-availability-history-day--sick {
    border-color: var(--v3-score-below, var(--v3-alert-amber));
    background: var(--v3-score-below, var(--v3-alert-amber));
}

.v3-availability-history-day--injured {
    border-color: var(--v3-score-critical, var(--v3-danger-red));
    background: var(--v3-score-critical, var(--v3-danger-red));
}

.v3-availability-history-day--excused {
    border-color: var(--v3-score-below, var(--v3-alert-amber));
    background: var(--v3-score-below, var(--v3-alert-amber));
}

.v3-availability-history-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: var(--v3-app-soft, var(--v3-text-soft));
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 700;
}

.v3-availability-history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 12px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1.2;
    font-weight: 700;
}

.v3-availability-history-legend span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow-wrap: anywhere;
}

.v3-availability-history-legend .v3-availability-history-day {
    width: 8px;
    height: 8px;
}

.v3-athlete-modal-section--trend {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--v3-app-border, var(--v3-border));
}

.v3-athlete-modal-trend-header {
    align-items: center;
    margin-bottom: 4px;
}

.v3-athlete-modal-trend-actions {
    min-width: 0;
    display: flex !important;
    justify-content: flex-end;
    gap: 18px !important;
    flex-wrap: wrap;
}

.v3-athlete-chart-metrics {
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: visible;
}

.v3-athlete-chart-metrics > button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 10px;
    font-size: var(--v3-type-caption);
}

.v3-athlete-chart-metrics > button .v3-icon {
    font-size: 16px;
}

.v3-athlete-chart-more {
    position: relative;
    flex: 0 0 auto;
}

.v3-athlete-chart-more > summary {
    min-height: 34px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    list-style: none;
    font-size: var(--v3-type-caption);
}

.v3-athlete-chart-more > summary::-webkit-details-marker {
    display: none;
}

.v3-athlete-chart-more > summary .v3-icon[data-v3-icon="ACT-03-DOWN"] {
    font-size: var(--v3-type-caption);
    transition: transform 160ms ease;
}

.v3-athlete-chart-more[open] > summary .v3-icon[data-v3-icon="ACT-03-DOWN"] {
    transform: rotate(180deg);
}

.v3-athlete-chart-more > div {
    min-width: 160px;
    position: absolute;
    z-index: 4;
    top: calc(100% + 5px);
    left: 0;
    display: grid;
    border: 1px solid var(--v3-app-border-strong, var(--v3-border));
    border-radius: 10px;
    padding: 5px;
    background: var(--v3-app-panel, var(--v3-surface));
    box-shadow: 0 14px 32px oklch(0.08 0.014 220 / 0.32);
}

.v3-athlete-chart-more:not([open]) > div {
    display: none;
}

.v3-athlete-chart-more > div button {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 7px;
    padding: 0 9px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    background: transparent;
    font: inherit;
    font-size: var(--v3-type-caption);
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.v3-athlete-chart-more > div button .v3-icon {
    font-size: 14px;
}

.v3-athlete-chart-more > div button:hover,
.v3-athlete-chart-more > div button:focus-visible,
.v3-athlete-chart-more > div button.is-active {
    color: var(--v3-app-text, var(--v3-text));
    background: var(--v3-app-panel-muted, var(--v3-surface-soft));
}

.v3-athlete-chart-layout {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    margin-top: 8px;
}

.v3-athlete-metric-chart {
    width: 100%;
    height: auto;
    aspect-ratio: 1000 / 220;
    display: block;
    overflow: visible;
}

.v3-athlete-metric-chart-grid line {
    stroke: var(--v3-app-border-strong, var(--v3-border));
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.v3-athlete-metric-chart-grid text {
    fill: color-mix(in oklch, var(--v3-app-text, var(--v3-text)) 62%, var(--v3-app-muted, var(--v3-text-muted)));
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-athlete-metric-chart-line {
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.v3-athlete-metric-chart-line--athlete {
    stroke: var(--v3-athletic-green-strong);
}

.v3-athlete-metric-chart-line--squad {
    stroke: var(--v3-score-expected, var(--v3-signal-blue));
    stroke-dasharray: 5 5;
}

.v3-athlete-metric-chart-line--missing {
    stroke: var(--v3-neutral-grey);
    stroke-width: 1.8;
    stroke-dasharray: 3 5;
    opacity: 0.82;
}

.v3-athlete-metric-chart-points circle {
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.v3-athlete-metric-chart-points--athlete circle {
    fill: var(--v3-athletic-green-strong);
    stroke: var(--v3-app-panel, var(--v3-surface));
}

.v3-athlete-metric-chart-points--squad circle {
    fill: var(--v3-score-expected, var(--v3-signal-blue));
    stroke: var(--v3-app-panel, var(--v3-surface));
}

.v3-athlete-metric-chart-score-value {
    fill: var(--v3-ink-light);
    font-family: var(--v3-font-display);
    font-size: var(--v3-type-caption);
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.v3-athlete-metric-chart-missing-marker circle {
    fill: var(--v3-app-panel, var(--v3-surface));
    stroke: var(--v3-neutral-grey);
}

.v3-athlete-metric-chart-missing-marker line {
    stroke: var(--v3-neutral-grey);
    stroke-width: 1.35;
    vector-effect: non-scaling-stroke;
}

.v3-athlete-metric-chart-value {
    fill: currentColor;
    font-size: 13px;
    font-weight: 800;
    paint-order: stroke;
    stroke: var(--v3-app-panel, var(--v3-surface));
    stroke-width: 3px;
    stroke-linejoin: round;
}

.v3-athlete-metric-chart-missing-label {
    fill: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    font-weight: 800;
    paint-order: stroke;
    stroke: var(--v3-app-panel, var(--v3-surface));
    stroke-width: 3px;
    stroke-linejoin: round;
}

.v3-athlete-metric-chart-points--athlete .v3-athlete-metric-chart-value {
    color: var(--v3-athletic-green-strong);
}

.v3-athlete-metric-chart-points--squad .v3-athlete-metric-chart-value {
    color: var(--v3-score-expected, var(--v3-signal-blue));
}

.v3-athlete-chart-summary {
    margin: 0;
    display: grid;
    gap: 12px;
}

.v3-athlete-chart-summary div {
    display: grid;
    gap: 3px;
}

.v3-athlete-chart-summary dt {
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.v3-athlete-chart-summary dd {
    margin: 0;
    color: var(--v3-app-text, var(--v3-text));
    font-family: var(--v3-font-display);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.v3-athlete-chart-key {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-athlete-chart-key span {
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
}

.v3-athlete-chart-key span::before {
    content: "";
    width: 22px;
    height: 3px;
    flex: 0 0 auto;
    background: currentColor;
}

.v3-athlete-chart-key-athlete {
    color: var(--v3-athletic-green-strong);
}

.v3-athlete-chart-key-squad {
    color: var(--v3-score-expected, var(--v3-signal-blue));
}

.v3-athlete-chart-key-squad::before {
    background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px) !important;
}

.v3-athlete-chart-key-missing {
    color: var(--v3-neutral-grey);
}

.v3-athlete-chart-key-missing::before {
    width: 7px !important;
    height: 7px !important;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent !important;
}

.v3-coach-note-form {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.v3-coach-note-reply-field {
    min-width: 0;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto 30px;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--v3-app-border-strong, var(--v3-border));
    border-radius: 10px;
    padding: 3px 4px 3px 9px;
    background: var(--v3-app-panel-muted, var(--v3-surface-soft));
}

.v3-coach-note-reply-field:focus-within {
    border-color: color-mix(
        in srgb,
        var(--v3-app-text, var(--v3-text)) 26%,
        var(--v3-app-border-strong, var(--v3-border-strong))
    );
    box-shadow: none;
}

.v3-coach-note-reply-icon {
    display: inline-grid;
    place-items: center;
    color: var(--v3-app-muted, var(--v3-text-muted));
}

.v3-coach-note-reply-icon .v3-icon {
    width: 17px;
    height: 17px;
}

.v3-coach-note-form textarea {
    width: 100%;
    min-height: 30px;
    max-height: 52px;
    resize: none;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    padding: 6px 0;
    color: var(--v3-app-text, var(--v3-text));
    background: transparent;
    font: inherit;
    font-size: var(--v3-type-label);
    line-height: 1.35;
}

.v3-coach-note-form textarea:focus {
    outline: none;
    box-shadow: none;
}

.v3-coach-note-form textarea::placeholder {
    color: var(--v3-app-muted, var(--v3-text-muted));
    opacity: 1;
}

.v3-coach-note-form output {
    min-width: 48px;
    color: var(--v3-app-muted, var(--v3-text-muted));
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: var(--v3-weight-medium);
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.v3-coach-note-form output.is-near-limit {
    color: var(--v3-alert-amber);
}

.v3-coach-note-send.v3-icon-control {
    --v3-icon-control-size: 30px;
    --v3-icon-control-target: 40px;
    border-color: transparent;
    border-radius: 50%;
    color: var(--v3-ink-light);
    background: var(--v3-athletic-green);
}

.v3-coach-note-send.v3-icon-control:hover:not(:disabled),
.v3-coach-note-send.v3-icon-control:focus-visible {
    border-color: transparent;
    color: var(--v3-ink-light);
    background: var(--v3-athletic-green-strong);
}

.v3-coach-note-error {
    display: block;
    color: var(--v3-danger-red);
    font-size: var(--v3-type-caption);
    line-height: 1.35;
    font-weight: var(--v3-weight-medium);
}

.v3-coach-note-error[hidden] {
    display: none;
}

.v3-athlete-modal-empty {
    padding: 12px 0;
    color: var(--v3-app-muted, var(--v3-text-muted));
}

@media (max-width: 1040px) {
    .v3-athlete-modal-panel .v3-athletes-detail-header {
        grid-template-columns: 142px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .v3-athlete-modal-gauge {
        width: 142px;
        height: 94px;
    }

    .v3-athlete-modal-close {
        grid-column: 3;
        grid-row: 1;
    }

    .v3-athlete-modal-body {
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
        gap: 16px 20px;
    }

    .v3-checkin-metric {
        grid-template-columns: minmax(142px, 0.95fr) minmax(92px, 1.05fr);
        gap: 8px;
    }

    .v3-athlete-modal-context {
        gap: 14px;
    }
}

@media (max-width: 920px) {
    .v3-checkin-metric-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .v3-athlete-modal {
        padding: 0;
    }

    .v3-athlete-modal.is-open {
        place-items: start stretch;
    }

    .v3-athlete-modal-panel {
        width: 100vw;
        height: var(--v3-viewport-height);
        max-height: none;
        min-height: 0;
        align-self: start;
        display: block;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-width: 0;
        border-radius: 0;
    }

    .v3-athlete-modal-panel .v3-athletes-detail-header {
        grid-template-columns: 118px minmax(0, 1fr) 40px;
        align-items: center;
        gap: 10px;
        padding: max(10px, var(--v3-safe-top, 0px)) 12px 10px;
    }

    .v3-athlete-modal-gauge {
        width: 118px;
        height: 86px;
    }

    .v3-athlete-modal-title h2 {
        font-size: 20px;
    }

    .v3-athlete-modal-coach-read p {
        font-size: var(--v3-type-caption);
    }

    .v3-athlete-modal-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        overflow-y: visible;
        padding: 18px 16px calc(24px + var(--v3-safe-bottom, 0px));
    }

    .v3-athlete-modal-context {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .v3-athlete-modal-section--availability {
        border-top: 1px solid var(--v3-app-border, var(--v3-border));
        padding-top: 20px;
    }

    .v3-checkin-metric-grid {
        column-gap: 12px;
    }

    .v3-checkin-metric-label {
        gap: 5px;
        font-size: var(--v3-type-caption);
    }

    .v3-athlete-modal-section--metrics .v3-athlete-modal-section-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .v3-athlete-metric-header-actions {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .v3-athlete-chart-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .v3-athlete-chart-metrics {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .v3-athlete-metric-chart {
        height: 165px;
        aspect-ratio: auto;
    }

    .v3-athlete-modal-trend-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .v3-athlete-modal-trend-actions {
        width: 100%;
        justify-content: space-between;
    }

    .v3-athlete-chart-key {
        flex-wrap: wrap;
    }

}

@media (max-width: 520px) {
    .v3-checkin-metric-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .v3-checkin-metric {
        grid-template-columns: 142px minmax(0, 1fr);
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3-checkin-metric,
    .v3-athlete-chart-more > summary .v3-icon[data-v3-icon="ACT-03-DOWN"] {
        transition: none;
    }
}
