/* Dashboard-only interaction and presentation refinements. */

/* Priority Actions base rules are owned by the Dashboard route. */
.v3-dashboard-panel--actions {
    grid-area: actions;
}

.v3-action-item button,
.v3-action-item a {
    font: inherit;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--v3-accent-border);
    border-radius: 8px;
    color: var(--v3-accent-foreground);
    background: transparent;
    padding: 0 12px;
    font-size: var(--v3-type-caption);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--v3-press-transition), background var(--v3-transition), border-color var(--v3-transition);
}

.v3-action-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--v3-app-panel-muted);
    color: var(--v3-app-muted);
}

.v3-action-list {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    padding: 8px 16px 16px;
    overflow: auto;
}

.v3-action-item {
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--v3-app-border);
}

.v3-action-item--setup {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.v3-action-item:first-child {
    border-top: 0;
}

.v3-action-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.v3-action-item--green .v3-action-icon {
    color: var(--v3-athletic-green);
    background: transparent;
    box-shadow: none;
}

.v3-action-item--amber .v3-action-icon {
    color: var(--v3-warning-orange);
    background: transparent;
    box-shadow: none;
}

.v3-action-item--red .v3-action-icon {
    color: var(--v3-danger-red);
    background: transparent;
    box-shadow: none;
}

.v3-action-item--blue .v3-action-icon {
    color: var(--v3-signal-blue);
    background: transparent;
    box-shadow: none;
}

.v3-action-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.v3-action-copy strong {
    min-width: 0;
    overflow: hidden;
    color: var(--v3-app-text);
    font-size: 14px;
    line-height: 1.15;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-action-copy em {
    min-width: 0;
    overflow: visible;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-style: normal;
    font-weight: 700;
    overflow-wrap: anywhere;
    white-space: normal;
}

.v3-action-state {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 800;
    white-space: nowrap;
}

.v3-action-state::before {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
}

.v3-action-state.is-complete {
    color: var(--v3-success-foreground);
}

.v3-action-item button,
.v3-action-item a {
    min-width: 96px;
    min-height: var(--v3-control-compact);
    justify-content: space-between;
    border-color: var(--v3-app-border);
    color: var(--v3-app-text);
    background: var(--v3-app-panel-muted);
}

.v3-action-item button:hover,
.v3-action-item button:focus-visible,
.v3-action-item a:hover,
.v3-action-item a:focus-visible {
    border-color: var(--v3-athletic-green);
}

.v3-action-item button:active,
.v3-action-item a:active {
    transform: scale(0.96);
}

@media (min-width: 1261px) {
    .v3-action-item button,
    .v3-action-item a {
        min-height: 30px;
        padding: 0 10px;
        font-size: var(--v3-type-caption);
    }

    .v3-action-list {
        flex: 1 1 auto;
        min-height: 0;
        padding: 0 18px;
        overflow: hidden;
    }

    .v3-action-item {
        min-height: 52px;
        grid-template-columns: 34px minmax(0, 1fr) auto auto;
        gap: 9px;
    }

    .v3-action-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .v3-action-copy strong,
    .v3-action-copy em,
    .v3-action-state {
        font-size: var(--v3-type-caption);
    }

    .v3-action-item button,
    .v3-action-item a {
        min-width: 82px;
    }
}

@media (min-width: 1261px) and (max-height: 719px) {
    .v3-action-list {
        overflow: visible;
    }
}

@media (max-width: 680px) {
    .v3-action-item {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .v3-action-state,
    .v3-action-item button,
    .v3-action-item a {
        grid-column: 2;
        justify-self: start;
    }
}

/* Priority Actions operational variants. */
.v3-dashboard-panel--actions .v3-panel-title .v3-icon {
    color: var(--v3-app-muted);
}

.v3-action-count {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 0;
    color: var(--v3-app-muted);
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.v3-action-item.is-complete {
    color: var(--v3-app-muted);
}

.v3-action-item.is-complete .v3-action-copy strong {
    color: var(--v3-app-text);
}

.v3-action-item.is-complete button {
    cursor: default;
    opacity: 0.72;
}

.v3-action-state.is-complete {
    color: var(--v3-success-foreground);
    background: transparent;
}

.v3-priority-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--v3-app-muted);
    text-align: center;
}

.v3-priority-empty .v3-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--v3-athletic-green-strong);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--v3-athletic-green);
    font-size: 20px;
}

.v3-priority-empty strong {
    color: var(--v3-app-text);
    font-size: 14px;
    font-weight: 800;
}

.v3-priority-empty span {
    max-width: 240px;
    font-size: var(--v3-type-caption);
    font-weight: 700;
}

.v3-action-player-sent {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--v3-app-border);
    border-radius: 9px;
    padding: 0 12px;
    color: var(--v3-app-text);
    background: var(--v3-app-panel-muted);
    font-size: var(--v3-type-caption);
    font-weight: 800;
    text-decoration: none;
}

.v3-priority-person.is-sent {
    color: var(--v3-app-muted);
}

.v3-action-player-sent {
    color: var(--v3-success-foreground);
}

.v3-action-player-error {
    grid-column: 1 / -1;
    color: var(--v3-danger-foreground);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

@media (max-width: 760px) {
    .v3-action-item,
    .v3-action-item--setup {
        grid-template-columns: 38px 30px minmax(0, 1fr);
    }

    .v3-action-item--setup {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .v3-action-state,
    .v3-action-item button,
    .v3-action-item a {
        grid-column: 3;
        justify-self: start;
    }

    .v3-action-item--setup .v3-action-state,
    .v3-action-item--setup a {
        grid-column: 2;
    }
}

/* Column labels remain available to assistive technology without reserving a blank header strip. */
.v3-squad-table .v3-squad-row--head.v3-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
}

@media (min-width: 681px) and (max-width: 920px) {
    .v3-squad-row {
        min-width: 0;
        grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.76fr) minmax(0, 1.18fr) 36px;
        gap: 10px;
        padding-inline: 14px;
    }

    .v3-squad-row--missing {
        grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.92fr) minmax(80px, 0.46fr) 36px;
    }

    .v3-squad-row--unavailable {
        grid-template-columns: minmax(150px, 0.92fr) minmax(130px, 0.76fr) minmax(180px, 1.2fr) 36px;
    }

    .v3-squad-row--notes {
        grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.3fr) 36px;
    }

    .v3-squad-row--checked-in {
        grid-template-columns: minmax(150px, 1fr) minmax(110px, 0.62fr) minmax(180px, 1.1fr) 36px;
    }
}

/* Dashboard disclosure arrows share the Squad Readiness interaction pattern. */
.v3-dashboard-chevron,
.v3-squad-status-row .v3-dashboard-chevron {
    flex: 0 0 auto;
    color: var(--v3-app-muted);
    font-size: 13px;
    line-height: 1;
    transform: translateX(-1px);
    transition: color var(--v3-transition), transform var(--v3-transition);
}

.v3-squad-status-row:hover .v3-dashboard-chevron,
.v3-squad-status-row:focus-visible .v3-dashboard-chevron,
.v3-row-action:hover .v3-dashboard-chevron,
.v3-row-action:focus-visible .v3-dashboard-chevron,
.v3-action-item button:hover .v3-dashboard-chevron,
.v3-action-item button:focus-visible .v3-dashboard-chevron,
.v3-action-item a:hover .v3-dashboard-chevron,
.v3-action-item a:focus-visible .v3-dashboard-chevron,
.v3-panel-footer-action:hover .v3-dashboard-chevron,
.v3-panel-footer-action:focus-visible .v3-dashboard-chevron {
    color: var(--v3-app-text);
    transform: translateX(2px);
}

.v3-squad-row .v3-row-action:hover,
.v3-squad-row .v3-row-action:focus-visible {
    color: inherit;
    background: transparent;
}

/* Dashboard hierarchy, gauges, and priority counts share one restrained system. */
.v3-dashboard-panel--readiness .v3-panel-title > .v3-icon:first-child,
.v3-dashboard-panel--next .v3-panel-title > .v3-icon:first-child {
    color: var(--v3-app-muted);
}

.v3-readiness-cell {
    flex-wrap: nowrap;
    gap: 6px;
}

.v3-overview-gauge {
    position: relative;
    width: 62px;
    height: 42px;
    display: inline-grid;
    flex: 0 0 62px;
    place-items: center;
}

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

.v3-squad-row .v3-athlete-cell {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
}

.v3-squad-row--needs-review {
    grid-template-columns: minmax(230px, 0.82fr) minmax(340px, 1.48fr) 42px;
}

.v3-dashboard-panel--overview .v3-signal-cell {
    gap: 4px;
}

.v3-dashboard-panel--overview .v3-signal-token {
    max-width: none;
    flex: 0 0 auto;
    padding-inline: 6px;
    font-size: var(--v3-type-caption);
}

.v3-dashboard-panel--overview .v3-signal-token span {
    overflow: visible;
    text-overflow: clip;
}

.v3-squad-table-panel {
    container-name: v3-squad-overview;
    container-type: inline-size;
}

.v3-signal-token--roomy {
    display: none;
}

@container v3-squad-overview (min-width: 760px) {
    .v3-signal-token--roomy {
        display: inline-flex;
    }

    .v3-signal-overflow {
        display: none;
    }
}

.v3-action-item {
    --v3-priority-tone: var(--v3-neutral-grey);
    grid-template-columns: 34px 32px minmax(0, 1fr) auto auto;
}

.v3-action-item.v3-action-item--setup {
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
}

.v3-action-item--green {
    --v3-priority-tone: var(--v3-score-good);
}

.v3-action-item--orange,
.v3-action-item--amber {
    --v3-priority-tone: var(--v3-alert-amber);
}

.v3-action-item--red {
    --v3-priority-tone: var(--v3-danger-red);
}

.v3-action-item--blue {
    --v3-priority-tone: var(--v3-signal-blue);
}

.v3-action-icon {
    width: 34px;
    height: 34px;
    color: var(--v3-priority-tone);
    background: color-mix(in oklch, var(--v3-priority-tone) 14%, transparent);
    font-size: 16px;
}

.v3-action-count {
    min-width: 32px;
    height: auto;
    justify-items: start;
    color: var(--v3-priority-tone);
    font-family: var(--v3-font-display);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}

.v3-action-count--empty {
    visibility: hidden;
}

@media (max-width: 680px) {
    .v3-action-item {
        grid-template-columns: 34px 30px minmax(0, 1fr);
    }

    .v3-action-item .v3-action-state,
    .v3-action-item button,
    .v3-action-item a {
        grid-column: 3;
        justify-self: start;
    }

    .v3-action-item.v3-action-item--setup {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .v3-action-item--setup .v3-action-state,
    .v3-action-item--setup a {
        grid-column: 2;
    }

    .v3-squad-table.is-scrollable-x.is-at-start-x:not(.is-at-end-x) {
        -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 30px), transparent 100%);
        mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 30px), transparent 100%);
    }

    .v3-squad-table.is-scrollable-x:not(.is-at-start-x):not(.is-at-end-x) {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%);
    }

    .v3-squad-table.is-scrollable-x.is-at-end-x:not(.is-at-start-x) {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 30px, #000 100%);
    }
}

@media (min-width: 1261px) {
    .v3-squad-row .v3-athlete-cell {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 7px;
    }

    .v3-squad-row .v3-overview-gauge {
        width: 54px;
        height: 38px;
        flex-basis: 54px;
    }

    .v3-squad-row--needs-review {
        grid-template-columns: minmax(142px, 0.7fr) minmax(0, 1.3fr) 36px;
    }
}

@media (min-width: 681px) and (max-width: 920px) {
    .v3-squad-row--needs-review {
        grid-template-columns: minmax(180px, 0.76fr) minmax(0, 1.24fr) 36px;
    }
}

@media (max-width: 680px) {
    .v3-squad-row--needs-review {
        min-width: 520px;
        grid-template-columns: 220px 252px 40px;
    }
}

/* Compact Squad Readiness empty state must remain inside its signal column. */
.v3-dashboard-panel--readiness .v3-signal-list--empty {
    grid-template-rows: minmax(0, 1fr);
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-top: 0;
    padding-top: 0;
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact > .v3-icon {
    display: none;
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact > div {
    min-width: 0;
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact strong,
.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact span {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact strong {
    font-size: var(--v3-type-caption);
    line-height: 1.25;
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact span {
    margin-top: 2px;
    font-size: var(--v3-type-caption);
    line-height: 1.25;
}

.v3-dashboard-panel--readiness .v3-dashboard-empty-inline--compact .v3-small-action {
    min-height: 30px;
    justify-self: end;
    padding-inline: 8px;
    font-size: var(--v3-type-caption);
    white-space: nowrap;
}

/* Priority Actions stays inside its dashboard panel and reveals one compact detail view at a time. */
.v3-priority-window {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.v3-priority-window [hidden] {
    display: none !important;
}

.v3-action-item .v3-action-open {
    width: var(--v3-control-standard);
    min-width: var(--v3-control-standard);
    height: var(--v3-control-standard);
    min-height: var(--v3-control-standard);
    grid-column: -1;
    justify-self: end;
    justify-content: center;
    border: 0;
    color: var(--v3-app-muted);
    background: transparent;
    padding: 0;
}

.v3-action-item .v3-action-open:hover,
.v3-action-item .v3-action-open:focus-visible,
.v3-action-item .v3-action-open[aria-expanded="true"] {
    border-color: transparent;
    color: var(--v3-app-text);
    background: transparent;
}

.v3-action-item.is-complete .v3-action-open {
    cursor: pointer;
    opacity: 1;
}

.v3-priority-detail {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: start;
    padding: 2px 18px 16px;
    overflow: auto;
}

.v3-priority-back {
    justify-self: start;
    margin-bottom: 4px;
}

.v3-priority-detail-heading {
    display: grid;
    gap: 3px;
    padding-bottom: 9px;
}

.v3-priority-detail-heading h3 {
    margin: 0;
    color: var(--v3-app-text);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.v3-priority-detail-heading p {
    margin: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.35;
    font-weight: 700;
}

.v3-priority-detail-list,
.v3-priority-people {
    min-height: 0;
    display: grid;
    align-content: start;
}

.v3-priority-detail-list {
    overflow: auto;
}

.v3-priority-person {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(142px, 0.86fr) minmax(0, 1.14fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--v3-app-border);
}

.v3-priority-person-athlete {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
}

.v3-priority-person-athlete > span:first-child {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--v3-accent-foreground);
    box-shadow: inset 0 0 0 1px var(--v3-athletic-green);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-priority-person-athlete strong,
.v3-priority-person-athlete em {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.v3-priority-person-athlete strong {
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.v3-priority-person-athlete em {
    margin-top: 2px;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.25;
    font-style: normal;
    font-weight: 700;
}

.v3-priority-person-context {
    min-width: 0;
}

.v3-priority-person-context strong {
    display: block;
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.v3-priority-person-context p {
    margin: 3px 0 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.v3-priority-person-action {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.v3-priority-person-action .v3-coach-button,
.v3-priority-person-action .v3-action-player-sent {
    min-width: 74px;
}

.v3-priority-person-empty {
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--v3-app-border);
    color: var(--v3-app-muted);
    font-size: 13px;
    font-weight: 700;
}

.v3-priority-detail-status {
    margin-top: 8px;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-priority-detail-status[data-tone="success"] {
    color: var(--v3-success-foreground);
}

.v3-priority-detail-status[data-tone="error"] {
    color: var(--v3-danger-foreground);
}

@media (max-width: 680px) {
    .v3-action-item:not(.v3-action-item--setup) {
        grid-template-columns: 34px 30px minmax(0, 1fr) var(--v3-control-phone);
    }

    .v3-action-item .v3-action-open {
        width: var(--v3-control-phone);
        min-width: var(--v3-control-phone);
        height: var(--v3-control-phone);
        min-height: var(--v3-control-phone);
        grid-column: 4;
        grid-row: 1;
        align-self: center;
    }

    .v3-priority-detail {
        padding-inline: 16px;
    }

    .v3-priority-person {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    .v3-priority-person-context {
        grid-column: 1 / -1;
        padding-left: 43px;
    }

    .v3-priority-person-action {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Squad Readiness is one selectable five-day rail with stable detail regions. */
.v3-dashboard-panel--readiness .v3-readiness-layout {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    padding-bottom: 6px;
}

.v3-dashboard-panel--readiness .v3-score-block {
    min-width: 0;
    display: block;
    border: 0;
    padding: 0;
}

.v3-readiness-rail {
    min-width: 0;
    width: calc(100% - 8px);
    display: grid;
    grid-template-columns:
        repeat(4, minmax(48px, 1fr))
        minmax(104px, 1.5fr);
    grid-template-rows: minmax(82px, auto) auto;
    column-gap: 8px;
    align-items: end;
    margin-inline-start: 8px;
}

.v3-readiness-day {
    --v3-readiness-day-tone: var(--v3-neutral-grey);
    min-width: 0;
    min-height: 76px;
    position: relative;
    display: grid;
    grid-template-rows: 15px 48px;
    align-content: end;
    justify-items: center;
    gap: 3px;
    border: 0;
    border-radius: 0;
    color: var(--v3-app-muted);
    background: transparent;
    box-shadow: none;
    padding: 0 2px 3px;
    font: inherit;
    cursor: pointer;
    transition:
        color var(--v3-transition),
        box-shadow var(--v3-transition);
}

.v3-readiness-day--good {
    --v3-readiness-day-tone: var(--v3-score-good);
}

.v3-readiness-day--watch {
    --v3-readiness-day-tone: var(--v3-score-below);
}

.v3-readiness-day--concern {
    --v3-readiness-day-tone: var(--v3-score-critical);
}

.v3-readiness-day:not(:last-of-type)::after {
    content: "";
    position: absolute;
    top: 48px;
    right: -8px;
    width: 8px;
    border-top: 1px solid var(--v3-app-border-strong);
    pointer-events: none;
}

.v3-readiness-day:hover,
.v3-readiness-day:focus-visible {
    color: var(--v3-app-text);
}

.v3-readiness-day:focus-visible {
    box-shadow: var(--v3-focus-ring);
}

.v3-readiness-day.is-selected {
    color: var(--v3-readiness-day-tone);
    box-shadow: inset 0 -2px 0 var(--v3-readiness-day-tone);
}

.v3-readiness-day--today {
    min-height: 92px;
    grid-template-rows: 15px 72px;
    padding-bottom: 3px;
}

.v3-readiness-day-label {
    color: inherit;
    font-size: var(--v3-type-caption);
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.v3-readiness-day--today .v3-readiness-day-label {
    color: var(--v3-score-good);
    font-weight: 800;
}

.v3-readiness-day-gauge {
    width: min(64px, 100%);
    height: 48px;
    display: grid;
    place-items: center;
}

.v3-readiness-day-gauge--today {
    width: min(118px, 100%);
    height: 72px;
}

.v3-readiness-day-gauge canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.v3-readiness-context-stack {
    min-width: 0;
    min-height: 51px;
    width: 100%;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(48px, 1fr))
        minmax(104px, 1.5fr);
    column-gap: 8px;
    align-items: start;
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 4px;
}

.v3-readiness-selected-context[hidden],
.v3-readiness-signal-panels [hidden] {
    display: none !important;
}

.v3-readiness-selected-context {
    --v3-readiness-context-tone: var(--v3-neutral-grey);
    min-width: 0;
    width: max-content;
    max-width: 160px;
    display: grid;
    justify-items: center;
    justify-self: center;
    gap: 3px;
    text-align: center;
}

.v3-readiness-selected-context--position-1 {
    grid-column: 1;
    max-width: 136px;
}

.v3-readiness-selected-context--position-1 .v3-readiness-status-dot {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
}

.v3-readiness-selected-context--position-2 {
    grid-column: 2;
}

.v3-readiness-selected-context--position-3 {
    grid-column: 3;
}

.v3-readiness-selected-context--position-4 {
    grid-column: 4;
}

.v3-readiness-selected-context--position-5 {
    grid-column: 5;
}

.v3-readiness-selected-context--good {
    --v3-readiness-context-tone: var(--v3-score-good);
}

.v3-readiness-selected-context--watch {
    --v3-readiness-context-tone: var(--v3-score-below);
}

.v3-readiness-selected-context--concern {
    --v3-readiness-context-tone: var(--v3-score-critical);
}

.v3-readiness-context-target,
.v3-readiness-context-status {
    font-size: var(--v3-type-caption);
    line-height: 1.2;
}

.v3-readiness-context-target {
    min-width: 0;
    color: var(--v3-app-text);
    font-weight: 800;
    text-wrap: pretty;
}

.v3-readiness-context-status {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--v3-app-muted);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.v3-readiness-context-status strong {
    color: var(--v3-readiness-context-tone);
    font-weight: 800;
}

.v3-readiness-context-status small {
    color: var(--v3-app-muted);
    font: inherit;
}

.v3-readiness-status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border: 2px solid var(--v3-readiness-context-tone);
    border-radius: 50%;
}

.v3-dashboard-panel--readiness .v3-readiness-insights {
    grid-template-columns: repeat(2, minmax(218px, 1fr));
    gap: 12px;
    padding-top: 5px;
}

.v3-dashboard-panel--readiness .v3-signal-block {
    grid-template-rows: 22px minmax(0, 1fr);
}

.v3-signal-heading {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.v3-signal-heading > span {
    min-width: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.1;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

.v3-readiness-signal-panels {
    min-width: 0;
    min-height: 0;
}

.v3-dashboard-panel--readiness .v3-readiness-signal-panels .v3-signal-list {
    min-height: 0;
    height: 100%;
    grid-template-rows: repeat(7, minmax(19px, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}

.v3-dashboard-panel--readiness .v3-readiness-signal-panels .v3-signal-row {
    min-height: 19px;
    grid-template-columns: 18px minmax(0, 1fr) 28px;
    gap: 5px;
}

.v3-dashboard-panel--readiness .v3-signal-average {
    color: var(--v3-signal-tone);
    font-size: var(--v3-type-label);
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.v3-dashboard-panel--readiness .v3-squad-status-row {
    gap: 5px;
}

@media (max-width: 920px) {
    .v3-dashboard-panel--readiness .v3-readiness-insights {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (min-width: 921px) and (max-width: 1260px) {
    .v3-app-main--dashboard .v3-dashboard-panel > .v3-panel-header,
    .v3-app-main--dashboard .v3-dashboard-panel--readiness .v3-panel-header {
        min-height: 40px;
        padding: 8px 14px 4px;
    }

    .v3-app-main--dashboard .v3-dashboard-panel .v3-panel-title h2,
    .v3-app-main--dashboard .v3-dashboard-panel--readiness .v3-panel-title h2 {
        font-size: var(--v3-type-section);
    }

    .v3-dashboard-panel--readiness .v3-readiness-layout {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 6px;
        padding: 0 14px 6px;
    }

    .v3-dashboard-panel--readiness .v3-readiness-insights {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 4px;
    }

    .v3-dashboard-panel--readiness .v3-squad-status-block {
        padding-left: 10px;
    }

    .v3-dashboard-panel--readiness .v3-signal-row,
    .v3-dashboard-panel--readiness .v3-squad-status-row {
        min-width: 0;
    }

    .v3-dashboard-panel--readiness .v3-squad-status-row {
        grid-template-columns: 18px 28px minmax(0, 1fr) 14px;
    }

    .v3-dashboard-panel--readiness .v3-squad-status-row strong {
        font-size: 19px;
    }

    .v3-dashboard-panel--next .v3-readiness-context {
        flex: 1 1 auto;
        grid-template-rows: minmax(118px, 1fr) 134px;
        padding: 0 14px 4px;
    }

    .v3-dashboard-panel--next .v3-context-journey {
        gap: 6px;
        padding: 2px 0 6px;
    }

    .v3-dashboard-panel--next .v3-context-day-title {
        font-size: var(--v3-type-caption);
    }

    .v3-dashboard-panel--next .v3-context-day--today .v3-context-day-title {
        font-size: 16px;
    }

    .v3-dashboard-panel--next .v3-context-summary {
        min-width: 0;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: 8px;
    }

    .v3-dashboard-panel--next .v3-today-readiness {
        min-width: 0;
        height: 100%;
        padding-left: 8px;
        overflow: hidden;
    }

    .v3-dashboard-panel--next .v3-insight-list-view,
    .v3-dashboard-panel--next .v3-insight-detail {
        height: 100%;
    }

    .v3-dashboard-panel--next .v3-load-chart {
        min-width: 0;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 3px;
    }

    .v3-dashboard-panel--next .v3-load-day {
        min-width: 0;
    }

    .v3-dashboard-panel--next .v3-load-bar-track {
        width: min(100%, 24px);
    }

    .v3-dashboard-panel--overview .v3-squad-tables,
    .v3-dashboard-panel--overview .v3-squad-table-panel,
    .v3-dashboard-panel--actions .v3-priority-window {
        min-height: 0;
    }

    .v3-dashboard-panel--overview .v3-squad-tables,
    .v3-dashboard-panel--actions .v3-action-list,
    .v3-dashboard-panel--actions .v3-priority-detail {
        overflow-y: auto;
    }

    .v3-dashboard-panel--overview .v3-squad-row[data-v3-overview-row] {
        min-width: 0;
        min-height: 54px;
        gap: 8px;
        padding-inline: 10px;
        font-size: var(--v3-type-caption);
    }

    .v3-dashboard-panel--overview .v3-squad-row--needs-review {
        grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.48fr) 40px;
    }

    .v3-dashboard-panel--overview .v3-squad-row--missing {
        grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.9fr) minmax(92px, 0.5fr) 40px;
    }

    .v3-dashboard-panel--overview .v3-squad-row--unavailable,
    .v3-dashboard-panel--overview .v3-squad-row--checked-in {
        grid-template-columns: minmax(180px, 0.95fr) minmax(145px, 0.82fr) minmax(0, 1.3fr) 40px;
    }

    .v3-dashboard-panel--overview .v3-squad-row--notes {
        grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.58fr) 40px;
    }

    .v3-dashboard-panel--overview .v3-athlete-cell {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 8px;
    }

    .v3-dashboard-panel--overview .v3-overview-gauge {
        width: 54px;
        height: 38px;
        flex-basis: 54px;
    }

    .v3-dashboard-panel--overview .v3-athlete-cell strong {
        font-size: var(--v3-type-label);
    }

    .v3-dashboard-panel--overview .v3-squad-row-affordance,
    .v3-dashboard-panel--overview .v3-row-action {
        width: 40px;
        min-width: 40px;
    }
}

@media (max-width: 680px) {
    .v3-readiness-rail {
        grid-template-columns: repeat(4, minmax(44px, 1fr)) minmax(92px, 1.55fr);
        width: 100%;
        margin-inline-start: 0;
        overflow: visible;
    }

    .v3-dashboard-panel--readiness .v3-score-block {
        overflow-x: visible;
    }

    .v3-readiness-context-stack {
        min-height: 68px;
        width: 100%;
        grid-template-columns: repeat(4, minmax(44px, 1fr)) minmax(92px, 1.55fr);
        grid-column: 1 / -1;
    }

    .v3-readiness-selected-context {
        max-width: 132px;
    }

    .v3-readiness-selected-context--position-1 {
        max-width: 90px;
    }

    .v3-readiness-selected-context--position-1 .v3-readiness-context-status {
        width: 90px;
        flex-wrap: wrap;
        gap: 2px;
        letter-spacing: normal;
        white-space: normal;
    }

    .v3-readiness-selected-context--position-1 .v3-readiness-context-status small {
        flex: 0 0 100%;
        text-align: center;
    }

    .v3-readiness-selected-context--position-5 {
        max-width: 104px;
    }

    .v3-readiness-selected-context--position-5 .v3-readiness-context-status {
        width: 100%;
        flex-wrap: wrap;
        gap: 2px;
        white-space: normal;
    }

    .v3-readiness-selected-context--position-5 .v3-readiness-context-status small {
        flex: 0 0 100%;
        text-align: center;
    }

    .v3-readiness-day {
        padding-inline: 2px;
    }

    .v3-readiness-day-gauge {
        width: min(54px, 100%);
        height: 44px;
    }

    .v3-readiness-day-gauge--today {
        width: min(104px, 100%);
        height: 70px;
    }

    .v3-signal-heading {
        align-items: start;
        flex-direction: column;
        gap: 3px;
    }

    .v3-dashboard-panel--readiness .v3-signal-block {
        grid-template-rows: auto minmax(0, 1fr);
        gap: 7px;
    }
}

/* Decorative icon frames add noise and can double up intrinsic circular glyphs. */
.v3-dashboard-empty-inline > .v3-icon,
.v3-plan-session-empty > .v3-icon,
.v3-squad-empty .v3-icon,
.v3-priority-empty .v3-icon,
.v3-context-row > .v3-icon,
.v3-action-icon,
.v3-context-day-icon {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.v3-action-icon {
    font-size: 22px;
}

.v3-context-day-icon {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

.v3-context-day--today .v3-context-day-icon {
    width: 40px;
    height: 40px;
    font-size: 40px;
}

/*
 * Desktop height budget: keep every Check-In Signal visible on a MacBook-sized
 * canvas while reserving enough lower-window height for four compact athlete rows.
 */
@media (min-width: 1261px) and (min-height: 720px) {
    .v3-app-main--dashboard .v3-dashboard-grid {
        grid-template-rows: clamp(375px, 53%, 410px) minmax(0, 1fr);
    }

    .v3-app-main--dashboard .v3-dashboard-panel--overview .v3-squad-row[data-v3-overview-row] {
        min-height: 54px;
    }

    .v3-app-main--dashboard .v3-action-list {
        overflow-y: auto;
    }
}

/* Phone disclosures and rows keep their surrounding windows geometrically stable. */
@media (max-width: 680px) {
    .v3-dashboard-panel--next .v3-today-readiness {
        height: 204px;
    }

    .v3-dashboard-panel--next .v3-insight-list-view,
    .v3-dashboard-panel--next .v3-insight-detail {
        height: 100%;
    }

    .v3-dashboard-panel--overview .v3-squad-table {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .v3-dashboard-panel--overview .v3-squad-row[data-v3-overview-row] {
        width: max-content;
        min-width: max(100%, 620px);
        min-height: 70px;
        position: relative;
        grid-template-columns: 220px max-content 44px;
        grid-template-areas: "athlete detail open";
        gap: 6px;
        padding: 8px;
        font-size: var(--v3-type-caption);
        cursor: pointer;
    }

    .v3-dashboard-panel--overview .v3-squad-row--missing,
    .v3-dashboard-panel--overview .v3-squad-row--unavailable,
    .v3-dashboard-panel--overview .v3-squad-row--checked-in {
        min-height: 92px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "athlete detail open"
            "context context open";
    }

    .v3-dashboard-panel--overview .v3-squad-row--notes {
        grid-template-areas: "athlete detail open";
    }

    .v3-dashboard-panel--overview .v3-athlete-cell {
        grid-area: athlete;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 6px;
    }

    .v3-dashboard-panel--overview .v3-overview-gauge {
        width: 52px;
        height: 38px;
    }

    .v3-dashboard-panel--overview .v3-athlete-cell strong,
    .v3-dashboard-panel--overview .v3-overview-detail-cell strong,
    .v3-dashboard-panel--overview .v3-overview-context-cell strong,
    .v3-dashboard-panel--overview .v3-overview-note-cell strong {
        font-size: var(--v3-type-label);
    }

    .v3-dashboard-panel--overview .v3-signal-cell,
    .v3-dashboard-panel--overview .v3-overview-detail-cell,
    .v3-dashboard-panel--overview .v3-overview-note-cell {
        grid-area: detail;
    }

    .v3-dashboard-panel--overview .v3-signal-cell {
        width: max-content;
        min-width: max-content;
    }

    .v3-dashboard-panel--overview .v3-signal-token {
        max-width: none;
        flex: 0 0 auto;
    }

    .v3-dashboard-panel--overview .v3-signal-token span {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .v3-dashboard-panel--overview .v3-overview-detail-cell,
    .v3-dashboard-panel--overview .v3-overview-note-cell {
        width: max-content;
        min-width: max-content;
    }

    .v3-dashboard-panel--overview .v3-overview-reminder-cell,
    .v3-dashboard-panel--overview .v3-overview-context-cell {
        grid-area: context;
    }

    .v3-dashboard-panel--overview .v3-squad-row-affordance {
        grid-area: open;
        align-self: stretch;
        display: grid;
        place-items: center;
    }
}
