body {
    background: var(--v3-app-canvas);
}

:root[data-v3-theme="dark"] {
    --v3-app-canvas: var(--v3-graphite-canvas);
    --v3-app-panel: oklch(0.215 0.017 220 / 0.96);
    --v3-app-panel-soft: oklch(0.255 0.016 220 / 0.84);
    --v3-app-panel-muted: oklch(0.285 0.014 220 / 0.54);
    --v3-app-text: var(--v3-ink-light);
    --v3-app-muted: var(--v3-muted-ink);
    --v3-app-soft: var(--v3-soft-ink);
    --v3-app-border: var(--v3-line);
    --v3-app-border-strong: var(--v3-line-strong);
    --v3-gauge-track: color-mix(in srgb, var(--v3-neutral-grey) 42%, transparent);
    --v3-row-hover: oklch(0.30 0.018 220 / 0.34);
}

:root[data-v3-theme="light"] {
    --v3-app-canvas: var(--v3-light-panel);
    --v3-app-panel: var(--v3-light-canvas);
    --v3-app-panel-soft: oklch(0.95 0 0);
    --v3-app-panel-muted: oklch(0.92 0 0 / 0.74);
    --v3-app-text: var(--v3-ink-dark);
    --v3-app-muted: var(--v3-text-muted);
    --v3-app-soft: var(--v3-text-soft);
    --v3-app-border: var(--v3-border);
    --v3-app-border-strong: var(--v3-border-strong);
    --v3-gauge-track: color-mix(in srgb, var(--v3-neutral-grey) 25%, transparent);
    --v3-row-hover: color-mix(in srgb, var(--v3-neutral-grey) 10%, transparent);
    --v3-shadow-panel: 0 12px 28px rgb(0 0 0 / 0.14);
}

/* Shared text-action contract for compact coach workspaces. */
.v3-coach-button {
    min-height: var(--v3-control-compact);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--v3-space-2);
    border: 1px solid var(--v3-app-border);
    border-radius: var(--v3-radius-sm);
    color: var(--v3-app-text);
    background: var(--v3-app-panel-soft);
    padding: 0 var(--v3-space-3);
    font: inherit;
    font-size: var(--v3-type-caption);
    font-weight: var(--v3-weight-heavy);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform var(--v3-press-transition),
        color var(--v3-transition),
        background var(--v3-transition),
        border-color var(--v3-transition),
        box-shadow var(--v3-transition);
}

.v3-coach-button--standard {
    min-height: var(--v3-control-standard);
    padding-inline: var(--v3-space-4);
}

.v3-coach-button--primary {
    border-color: transparent;
    color: var(--v3-primary-action-foreground);
    background: var(--v3-primary-action-background);
}

.v3-coach-button--secondary {
    border-color: var(--v3-accent-border);
    color: var(--v3-accent-foreground);
    background: transparent;
}

.v3-coach-button--subtle {
    color: var(--v3-app-text);
    background: var(--v3-app-panel-soft);
}

.v3-coach-button--quiet {
    border-color: transparent;
    color: var(--v3-app-muted);
    background: transparent;
}

.v3-coach-button--danger {
    border-color: var(--v3-danger-border);
    color: var(--v3-danger-foreground);
    background: transparent;
}

.v3-coach-button:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]),
.v3-coach-button:focus-visible {
    border-color: var(--v3-accent-border);
}

.v3-coach-button--primary:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]),
.v3-coach-button--primary:focus-visible {
    border-color: transparent;
    background: var(--v3-primary-action-background-hover);
}

.v3-coach-button--secondary:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
    background: var(--v3-row-hover);
}

.v3-coach-button--subtle:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]),
.v3-coach-button--quiet:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
    color: var(--v3-app-text);
    background: var(--v3-row-hover);
}

.v3-coach-button--danger:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
    border-color: var(--v3-danger-foreground);
    background: var(--v3-row-hover);
}

.v3-coach-button:focus-visible {
    outline: none;
    box-shadow: var(--v3-focus-ring);
}

.v3-coach-button:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
    transform: scale(0.96);
}

.v3-coach-button:disabled,
.v3-coach-button[aria-disabled="true"] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.v3-coach-button[aria-busy="true"],
.v3-coach-button.is-loading {
    opacity: 0.72;
    cursor: progress;
    transform: none;
}

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

@media (max-width: 680px) {
    .v3-coach-button {
        min-height: var(--v3-control-phone);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3-coach-button {
        transition: none;
    }

    .v3-coach-button:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
        transform: none;
    }
}

/* Shared icon-only action contract for coach workspaces and dialogs. */
.v3-icon-control {
    --v3-icon-control-size: var(--v3-control-compact);
    --v3-icon-control-target: 40px;
    width: var(--v3-icon-control-size);
    min-width: var(--v3-icon-control-size);
    height: var(--v3-icon-control-size);
    min-height: var(--v3-icon-control-size);
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--v3-app-border);
    border-radius: var(--v3-radius-sm);
    color: var(--v3-app-muted);
    background: var(--v3-app-panel-soft);
    padding: 0;
    font: inherit;
    font-size: var(--v3-type-label);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--v3-press-transition),
        color var(--v3-transition),
        background var(--v3-transition),
        border-color var(--v3-transition),
        box-shadow var(--v3-transition),
        opacity var(--v3-transition);
}

.v3-icon-control::after {
    content: "";
    width: var(--v3-icon-control-target);
    height: var(--v3-icon-control-target);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.v3-icon-control > .v3-icon {
    width: 16px;
    height: 16px;
}

.v3-icon-control--standard {
    --v3-icon-control-size: var(--v3-control-standard);
    --v3-icon-control-target: var(--v3-control-standard);
}

.v3-icon-control--standard > .v3-icon {
    width: 20px;
    height: 20px;
}

.v3-icon-control--micro {
    --v3-icon-control-size: 24px;
}

.v3-icon-control--quiet {
    border-color: transparent;
    background: transparent;
}

.v3-icon-control:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]),
.v3-icon-control[aria-expanded="true"] {
    border-color: var(--v3-accent-border);
    color: var(--v3-app-text);
    background: var(--v3-row-hover);
}

.v3-icon-control--quiet:hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]),
.v3-icon-control--quiet[aria-expanded="true"] {
    border-color: transparent;
    color: var(--v3-accent-foreground);
    background: transparent;
}

.v3-icon-control:focus-visible {
    outline: none;
    box-shadow: var(--v3-focus-ring);
}

.v3-icon-control:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
    transform: scale(0.96);
}

.v3-icon-control:disabled,
.v3-icon-control[aria-disabled="true"] {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.v3-icon-control[aria-busy="true"],
.v3-icon-control.is-loading {
    opacity: 0.72;
    cursor: progress;
    transform: none;
}

.v3-icon-control[aria-busy="true"] > .v3-icon,
.v3-icon-control.is-loading > .v3-icon {
    visibility: hidden;
}

.v3-icon-control[aria-busy="true"]::before,
.v3-icon-control.is-loading::before {
    content: "";
    width: 14px;
    height: 14px;
    position: absolute;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: v3-icon-control-spin 700ms linear infinite;
}

.v3-icon-control[hidden] {
    display: none;
}

@keyframes v3-icon-control-spin {
    to {
        rotate: 1turn;
    }
}

@media (max-width: 680px) {
    .v3-icon-control:not(.v3-icon-control--micro) {
        --v3-icon-control-size: var(--v3-control-phone);
        --v3-icon-control-target: var(--v3-control-phone);
    }

    .v3-icon-control--micro {
        --v3-icon-control-target: var(--v3-control-phone);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v3-icon-control {
        transition: none;
    }

    .v3-icon-control:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) {
        transform: none;
    }

    .v3-icon-control[aria-busy="true"]::before,
    .v3-icon-control.is-loading::before {
        animation: none;
    }
}

.v3-app-shell {
    min-height: var(--v3-viewport-height);
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    touch-action: manipulation;
    color: var(--v3-app-text);
    background: var(--v3-app-canvas);
}

:root[data-v3-theme="dark"] .v3-app-shell {
    background:
        radial-gradient(circle, oklch(0.74 0.04 220 / 0.11) 0 1px, transparent 1.4px) calc(100% - 112px) 44px / 12px 12px,
        linear-gradient(132deg, transparent 0 18%, oklch(0.32 0.020 220 / 0.18) 18.1% 18.35%, transparent 18.5% 70%, oklch(0.32 0.020 220 / 0.14) 70.1% 70.35%, transparent 70.5%),
        linear-gradient(315deg, oklch(0.23 0.022 220 / 0.30), transparent 44%),
        var(--v3-app-canvas);
}

.v3-app-rail {
    min-height: var(--v3-viewport-height);
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 22px;
    padding: 28px 18px 24px;
    border-right: 1px solid oklch(0.76 0.018 220 / 0.12);
    background: var(--v3-brand-rail);
    color: var(--v3-ink-light);
}

.v3-app-brand {
    display: flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
}

.v3-app-brand img {
    display: block;
    width: 196px;
    max-width: 100%;
    height: auto;
}

.v3-team-switcher,
.v3-app-theme-control,
.v3-app-help,
.v3-profile-pill,
.v3-panel-link,
.v3-small-action,
.v3-context-row button,
.v3-context-row a,
.v3-panel-footer-action,
.v3-row-action {
    font: inherit;
}

.v3-team-switcher,
.v3-app-help {
    width: 100%;
    min-width: 0;
    border: 1px solid oklch(0.76 0.018 220 / 0.12);
    color: var(--v3-ink-light);
    background: oklch(0.20 0.018 220 / 0.72);
    text-decoration: none;
}

.v3-team-switcher {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: transform var(--v3-press-transition), background var(--v3-transition), border-color var(--v3-transition), box-shadow var(--v3-transition);
}

.v3-team-switcher-logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: transparent;
    color: var(--v3-athletic-green);
    overflow: visible;
}

.v3-team-switcher-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: 0;
    border-radius: 0;
}

.v3-team-switcher-logo .v3-icon {
    font-size: 20px;
}

.v3-team-switcher-copy,
.v3-coach-copy,
.v3-profile-pill span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.v3-team-switcher-copy strong,
.v3-coach-copy strong,
.v3-profile-pill strong {
    min-width: 0;
    overflow: hidden;
    color: var(--v3-ink-light);
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-team-switcher-copy span,
.v3-coach-copy span,
.v3-profile-pill em {
    min-width: 0;
    overflow: hidden;
    color: oklch(0.76 0.018 220 / 0.74);
    font-size: var(--v3-type-caption);
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-app-nav {
    display: grid;
    align-content: start;
    gap: 8px;
}

.v3-app-nav-item {
    min-height: 48px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: oklch(0.84 0.018 220 / 0.72);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--v3-press-transition), color var(--v3-transition), background var(--v3-transition), border-color var(--v3-transition);
}

.v3-app-nav-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-app-nav-item .v3-icon {
    color: currentColor;
    font-size: 21px;
    line-height: 1;
}

.v3-app-nav-item.is-active {
    border-color: var(--v3-athletic-green);
    color: var(--v3-athletic-green-soft);
    background: transparent;
}

.v3-app-nav-item:hover,
.v3-app-nav-item:focus-visible {
    border-color: var(--v3-athletic-green);
    color: var(--v3-ink-light);
    background: oklch(0.20 0.018 220 / 0.62);
    outline: none;
}

.v3-app-nav-item.is-disabled {
    cursor: default;
}

.v3-app-rail-footer {
    display: grid;
    gap: 8px;
}

.v3-shell-menu-anchor {
    position: relative;
    min-width: 0;
}

.v3-coach-account-anchor {
    display: none;
}

.v3-app-help,
.v3-app-theme-control {
    display: grid;
    align-items: center;
    border-color: transparent;
    background: transparent;
}

.v3-app-help {
    grid-template-columns: 28px minmax(0, 1fr) 16px;
    gap: 12px;
    padding: 0 12px;
    border-top: 1px solid oklch(0.76 0.018 220 / 0.12);
    border-radius: 0;
    color: oklch(0.84 0.018 220 / 0.78);
    font-weight: 800;
    cursor: pointer;
    text-align: left;
    transition: transform var(--v3-press-transition), background var(--v3-transition), border-color var(--v3-transition), box-shadow var(--v3-transition);
}

.v3-app-theme-control {
    width: 58px;
    height: 30px;
    justify-self: start;
    position: relative;
    border: 1px solid oklch(0.84 0.018 220 / 0.45);
    border-radius: var(--v3-radius-pill);
    color: oklch(0.32 0.018 220);
    background: oklch(0.96 0.006 220);
    padding: 0;
    cursor: pointer;
    transition: transform var(--v3-press-transition), background var(--v3-transition), border-color var(--v3-transition);
}

.v3-theme-toggle-track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.v3-theme-toggle-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    transition: color var(--v3-transition);
}

.v3-theme-toggle-icon--sun {
    left: 8px;
    color: var(--v3-athletic-green);
}

.v3-theme-toggle-icon--moon {
    right: 8px;
    color: oklch(0.38 0.018 220 / 0.52);
}

.v3-theme-toggle-thumb {
    position: absolute;
    z-index: 1;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: oklch(0.99 0.004 220);
    box-shadow: 0 1px 4px oklch(0.12 0.016 220 / 0.32);
    transition: transform var(--v3-transition);
}

:root[data-v3-theme="dark"] .v3-app-theme-control {
    border-color: oklch(0.12 0.016 220 / 0.8);
    color: var(--v3-ink-light);
    background: oklch(0.10 0.014 220);
}

:root[data-v3-theme="dark"] .v3-theme-toggle-icon--sun {
    color: oklch(0.84 0.018 220 / 0.34);
}

:root[data-v3-theme="dark"] .v3-theme-toggle-icon--moon {
    color: var(--v3-athletic-green);
}

:root[data-v3-theme="dark"] .v3-theme-toggle-thumb {
    transform: translateX(28px);
}

.v3-coach-avatar,
.v3-athlete-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--v3-ink-light);
    background: var(--v3-athletic-green);
    font-weight: 800;
}

.v3-coach-avatar {
    width: 42px;
    height: 42px;
    font-size: 13px;
}

.v3-app-main {
    min-width: 0;
    padding: 26px 18px 34px;
}

.v3-dashboard-header {
    min-height: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.v3-dashboard-header--demo {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(420px, 680px) 210px;
    align-items: center;
}

.v3-demo-callout {
    grid-column: 2;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--v3-accent-border);
    border-radius: var(--v3-radius-sm);
    padding: 4px 5px 4px 12px;
    background: var(--v3-app-panel);
    box-shadow: var(--v3-shadow-border);
}

.v3-demo-callout__copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.v3-demo-callout__copy > span {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.2;
}

.v3-demo-callout__copy strong {
    color: var(--v3-app-text);
}

.v3-demo-callout__copy > strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-demo-callout .v3-coach-button {
    min-height: 34px;
    flex: 0 0 auto;
}

.v3-dashboard-heading {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.v3-dashboard-heading h1 {
    margin: 0;
    color: var(--v3-app-text);
    font-family: var(--v3-font-display);
    font-size: 38px;
    line-height: 1.05;
    font-weight: 800;
    text-wrap: balance;
}

.v3-dashboard-heading-meta {
    min-width: 0;
    max-width: 760px;
    margin: 0;
    color: var(--v3-app-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-wrap: pretty;
}

.v3-dashboard-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.v3-profile-pill {
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--v3-app-text);
    background: var(--v3-app-panel);
    box-shadow: var(--v3-shadow-border);
    transition: transform var(--v3-press-transition), background var(--v3-transition), border-color var(--v3-transition), box-shadow var(--v3-transition);
}

.v3-profile-pill {
    min-width: 220px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    text-align: left;
    cursor: pointer;
}

.v3-shell-popover {
    position: absolute;
    z-index: 30;
    min-width: 238px;
    display: grid;
    gap: 9px;
    border: 1px solid var(--v3-app-border);
    border-radius: 12px;
    color: var(--v3-app-text);
    background: var(--v3-app-panel);
    padding: 12px;
    box-shadow: 0 18px 44px oklch(0.08 0.012 220 / 0.30);
}

.v3-shell-popover[hidden] {
    display: none;
}

.v3-shell-menu-scrim {
    display: none;
}

.v3-shell-popover--rail {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
}

.v3-shell-popover--footer {
    top: auto;
    bottom: calc(100% + 8px);
}

.v3-shell-popover--header {
    top: calc(100% + 8px);
    right: 0;
}

.v3-shell-popover--profile {
    min-width: 256px;
}

.v3-profile-mobile-teams {
    display: none;
}

.v3-shell-popover strong {
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.v3-shell-popover p {
    margin: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.4;
    font-weight: 700;
}

.v3-shell-popover a,
.v3-shell-popover form button {
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--v3-app-border);
    border-radius: 8px;
    color: var(--v3-app-text);
    background: var(--v3-app-panel-soft);
    padding: 0 10px;
    font: inherit;
    font-size: var(--v3-type-caption);
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--v3-press-transition), background var(--v3-transition), border-color var(--v3-transition);
}

.v3-shell-popover form {
    margin: 0;
}

.v3-shell-popover form button {
    width: 100%;
    cursor: pointer;
}

.v3-team-menu {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 0;
    overflow: hidden;
    padding: 8px 0;
}

.v3-team-menu__heading {
    display: block;
    padding: 4px 12px 8px;
}

.v3-team-menu__teams {
    min-height: 0;
    overflow-y: auto;
}

.v3-team-menu .v3-team-menu__teams form + form {
    border-top: 1px solid var(--v3-app-border);
}

.v3-team-menu .v3-team-menu__teams form button,
.v3-team-menu > a {
    min-height: var(--v3-control-standard);
    border: 0;
    border-radius: 0;
    background: transparent;
    padding-inline: 12px;
}

.v3-team-menu .v3-team-menu__teams form button[aria-current="true"] {
    color: var(--v3-accent-foreground);
}

.v3-team-menu > a {
    border-top: 1px solid var(--v3-app-border);
}

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

.v3-team-menu .v3-team-menu__teams form button:hover,
.v3-team-menu .v3-team-menu__teams form button:focus-visible,
.v3-team-menu > a:hover,
.v3-team-menu > a:focus-visible {
    border-color: transparent;
    background: var(--v3-row-hover);
}

.v3-feedback {
    display: grid;
    gap: var(--v3-space-2);
}

.v3-feedback:not(:has(.v3-feedback__item)) {
    display: none;
}

.v3-feedback__item,
.v3-async-feedback {
    --v3-feedback-tone: var(--v3-signal-blue);
    --v3-feedback-boundary: var(--v3-signal-blue);
    --v3-feedback-icon: color-mix(in oklch, var(--v3-signal-blue) 78%, var(--v3-app-text));
    min-width: 0;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: var(--v3-space-2);
    margin: 0;
    border: 1px solid var(--v3-feedback-boundary);
    border-radius: var(--v3-radius-sm);
    color: var(--v3-app-text);
    background: transparent;
    padding: 9px 11px;
    font-size: var(--v3-type-caption);
    line-height: var(--v3-leading-body);
    font-weight: var(--v3-weight-strong);
    overflow-wrap: anywhere;
}

.v3-feedback__item > .v3-icon,
.v3-async-feedback > .v3-icon {
    margin-top: 1px;
    color: var(--v3-feedback-icon);
    font-size: 14px;
    line-height: var(--v3-leading-body);
}

.v3-feedback__item--warning,
.v3-async-feedback[data-v3-feedback-tone="warning"] {
    --v3-feedback-tone: var(--v3-alert-amber);
    --v3-feedback-boundary: var(--v3-warning-border);
    --v3-feedback-icon: var(--v3-warning-foreground);
}

.v3-feedback__item--error,
.v3-async-feedback[data-v3-feedback-tone="error"] {
    --v3-feedback-tone: var(--v3-danger-red);
    --v3-feedback-boundary: var(--v3-danger-border);
    --v3-feedback-icon: var(--v3-danger-foreground);
}

.v3-async-feedback[data-v3-feedback-tone="success"] {
    --v3-feedback-tone: var(--v3-athletic-green);
    --v3-feedback-boundary: var(--v3-success-border);
    --v3-feedback-icon: var(--v3-success-foreground);
}

.v3-async-feedback[hidden] {
    display: none;
}

:is(.v3-icon-control, .v3-coach-button)[data-v3-control-feedback="success"] {
    border-color: var(--v3-success-border);
    color: var(--v3-success-foreground);
    background: transparent;
}

:is(.v3-icon-control, .v3-coach-button)[data-v3-control-feedback="error"] {
    border-color: var(--v3-danger-border);
    color: var(--v3-danger-foreground);
    background: transparent;
}

:is(.v3-icon-control, .v3-coach-button)[data-v3-control-feedback="warning"] {
    border-color: var(--v3-warning-border);
    color: var(--v3-warning-foreground);
    background: transparent;
}

:is(.v3-icon-control, .v3-coach-button)[data-v3-control-feedback="info"] {
    border-color: color-mix(in oklch, var(--v3-signal-blue) 70%, var(--v3-app-border));
    color: color-mix(in oklch, var(--v3-signal-blue) 72%, var(--v3-app-text));
    background: color-mix(in oklch, var(--v3-signal-blue) 10%, var(--v3-app-panel));
}

:root[data-v3-theme="light"] .v3-profile-pill strong {
    color: var(--v3-app-text);
}

:root[data-v3-theme="light"] .v3-profile-pill em {
    color: var(--v3-app-muted);
}

.v3-dashboard {
    --v3-alert-amber: var(--v3-warning-orange);
    --v3-score-good: #009B44;
    --v3-score-above: #009B44;
    --v3-score-below: var(--v3-warning-orange);
    --v3-score-critical: var(--v3-danger-red);
    min-width: 0;
    display: grid;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 14px;
}

.v3-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
        "readiness next"
        "overview actions";
    gap: 12px;
}

.v3-dashboard-panel {
    min-width: 0;
    position: relative;
    border: 1px solid var(--v3-app-border);
    border-radius: 14px;
    background: var(--v3-app-panel);
    box-shadow: var(--v3-shadow-panel);
}

.v3-dashboard-panel--readiness {
    grid-area: readiness;
    min-height: 0;
    overflow: hidden;
    border-color: var(--v3-app-border);
    border-radius: 14px;
    background: var(--v3-app-panel);
    box-shadow: var(--v3-shadow-panel);
}

.v3-dashboard-panel--readiness .v3-panel-header {
    min-height: 44px;
    padding: 9px 20px 2px;
}

.v3-dashboard-panel--readiness .v3-panel-title {
    gap: 10px;
}

.v3-dashboard-panel--readiness .v3-panel-title h2 {
    font-size: 20px;
    letter-spacing: 0;
}

.v3-dashboard-panel--readiness .v3-panel-title > .v3-icon:first-child {
    color: var(--v3-score-good);
    font-size: 25px;
    filter: none;
}

.v3-dashboard-panel--next {
    grid-area: next;
}

.v3-dashboard-panel--overview {
    grid-area: overview;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v3-panel-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 10px;
}

.v3-panel-title {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.v3-panel-title h2 {
    margin: 0;
    color: var(--v3-app-text);
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.v3-panel-title > .v3-icon {
    color: var(--v3-app-muted);
    font-size: 17px;
}

.v3-panel-title > .v3-icon:first-child {
    color: var(--v3-app-muted);
    font-size: 21px;
}

.v3-panel-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--v3-app-border);
    border-radius: 8px;
    color: var(--v3-app-text);
    background: var(--v3-app-panel-soft);
    padding: 0 11px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.v3-dashboard-section-label {
    margin: 0;
    color: var(--v3-app-muted);
    font-family: var(--v3-font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
}

.v3-readiness-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 20px 14px;
}

.v3-score-block {
    --v3-score-status-color: var(--v3-app-text);
    --v3-score-status-tint: var(--v3-app-panel-soft);
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 5px 0 0;
}

.v3-score-block--in {
    --v3-score-status-color: var(--v3-score-good);
    --v3-score-status-tint: transparent;
}

.v3-score-block--above {
    --v3-score-status-color: var(--v3-score-above);
    --v3-score-status-tint: transparent;
}

.v3-score-block--below {
    --v3-score-status-color: var(--v3-score-below);
    --v3-score-status-tint: transparent;
}

.v3-score-block--critical {
    --v3-score-status-color: var(--v3-score-critical);
    --v3-score-status-tint: transparent;
}

.v3-score-context-item--status {
    color: var(--v3-score-status-color);
    font-weight: 800;
}

.v3-score-context-item--range strong {
    color: var(--v3-score-good);
}

.v3-score-context-item--coverage strong {
    color: var(--v3-app-text);
}

.v3-readiness-insights {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.9fr);
    gap: 16px;
    border-top: 1px solid var(--v3-app-border);
    padding-top: 14px;
}

.v3-signal-block,
.v3-coach-impact {
    min-width: 0;
}

.v3-signal-block,
.v3-coach-impact {
    display: grid;
    gap: 5px;
}

.v3-signal-list {
    display: grid;
}

.v3-signal-row {
    --v3-signal-tone: var(--v3-score-good);
    --v3-signal-icon: var(--v3-signal-blue);
    min-width: 0;
    min-height: 25px;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--v3-app-border);
    color: var(--v3-app-text);
}

.v3-signal-row:first-child {
    border-top: 1px solid var(--v3-app-border);
}

.v3-signal-row .v3-icon {
    color: var(--v3-signal-icon);
    font-size: 17px;
    text-align: center;
}

.v3-signal-row strong {
    min-width: 0;
    overflow: hidden;
    color: var(--v3-app-text);
    font-size: var(--v3-type-caption);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-signal-row span {
    color: var(--v3-signal-tone);
    font-size: var(--v3-type-caption);
    font-weight: 800;
    white-space: nowrap;
}

.v3-signal-row--watch {
    --v3-signal-tone: var(--v3-score-below);
}

.v3-signal-row--concern {
    --v3-signal-tone: var(--v3-score-critical);
}

.v3-squad-status-block {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    border-left: 1px solid var(--v3-app-border);
    padding-left: 16px;
}

.v3-impact-list {
    display: grid;
    gap: 4px;
}

.v3-impact-row {
    --v3-impact-tone: var(--v3-score-good);
    min-width: 0;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    color: var(--v3-app-text);
    font-size: var(--v3-type-caption);
    font-weight: 700;
    line-height: 1.25;
}

.v3-impact-row .v3-icon {
    color: var(--v3-impact-tone);
    font-size: 16px;
    text-align: center;
}

.v3-impact-row span {
    min-width: 0;
}

.v3-impact-row--watch {
    --v3-impact-tone: var(--v3-score-below);
}

.v3-impact-row--concern {
    --v3-impact-tone: var(--v3-score-critical);
}

.v3-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--v3-app-soft);
    vertical-align: middle;
}

.v3-dot--green {
    background: var(--v3-athletic-green);
}

.v3-dot--amber {
    background: var(--v3-alert-amber);
}

.v3-dot--red {
    background: var(--v3-danger-red);
}

.v3-dashboard-empty-inline {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--v3-app-border);
}

.v3-dashboard-empty-inline > .v3-icon,
.v3-context-row > .v3-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--v3-app-panel-muted);
    color: var(--v3-app-muted);
}

.v3-dashboard-empty-inline > .v3-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.v3-dashboard-empty-inline strong,
.v3-dashboard-empty-inline span,
.v3-squad-empty strong,
.v3-squad-empty span {
    display: block;
}

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

.v3-dashboard-empty-inline span,
.v3-squad-empty span {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 700;
}

.v3-dashboard-empty-inline--compact {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 8px;
}

.v3-dashboard-empty-inline--compact > .v3-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.v3-small-action,
.v3-context-row button,
.v3-context-row a,
.v3-row-action {
    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-plan-live {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 2px 20px 20px;
}

.v3-plan-section {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.v3-plan-section + .v3-plan-section {
    padding-top: 15px;
    border-top: 1px solid var(--v3-app-border);
}

.v3-plan-feature {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.v3-plan-feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--v3-athletic-green);
    font-size: 28px;
    line-height: 1;
}

.v3-plan-section--today .v3-plan-feature-icon {
    color: var(--v3-alert-amber);
}

.v3-plan-feature h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--v3-app-text);
    font-size: 23px;
    line-height: 1.12;
    font-weight: 800;
    text-wrap: balance;
}

.v3-plan-feature p {
    min-width: 0;
    margin: 5px 0 0;
    color: var(--v3-app-muted);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    text-wrap: pretty;
}

.v3-plan-context-list {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.v3-plan-context-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--v3-app-muted);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.v3-plan-context-row .v3-icon {
    color: var(--v3-app-muted);
    font-size: 18px;
    text-align: center;
}

.v3-plan-context-row strong {
    color: var(--v3-app-text);
    font-weight: 800;
}

.v3-plan-context-row--range .v3-icon,
.v3-plan-context-row--range strong {
    color: var(--v3-score-good);
}

.v3-plan-context-row--outlook.is-good .v3-icon,
.v3-plan-context-row--outlook.is-good strong {
    color: var(--v3-score-good);
}

.v3-plan-context-row--outlook.is-watch .v3-icon,
.v3-plan-context-row--outlook.is-watch strong {
    color: var(--v3-score-below);
}

.v3-plan-context-row--outlook.is-concern .v3-icon,
.v3-plan-context-row--outlook.is-concern strong {
    color: var(--v3-score-critical);
}

.v3-plan-session-meta {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 7px;
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.v3-plan-session-meta span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v3-plan-session-meta .v3-icon {
    color: var(--v3-accent-foreground);
    font-size: 17px;
}

.v3-plan-session-details {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--v3-app-border);
    border-bottom: 1px solid var(--v3-app-border);
}

.v3-plan-session-detail {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 3px 10px;
    padding: 10px 0;
}

.v3-plan-session-detail + .v3-plan-session-detail {
    border-left: 1px solid var(--v3-app-border);
    padding-left: 18px;
}

.v3-plan-session-detail .v3-icon {
    grid-row: span 2;
    color: var(--v3-athletic-green);
    font-size: 22px;
    text-align: center;
}

.v3-plan-session-detail span {
    min-width: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.1;
    font-weight: 700;
}

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

.v3-plan-session-prompt {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--v3-app-muted);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.v3-plan-session-prompt .v3-icon {
    color: var(--v3-accent-foreground);
    font-size: 18px;
}

.v3-plan-session-empty {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--v3-app-border);
    border-bottom: 1px solid var(--v3-app-border);
}

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

.v3-plan-session-empty strong,
.v3-plan-session-empty span {
    display: block;
}

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

.v3-plan-session-empty span {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 700;
}

.v3-next-live,
.v3-next-empty {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 2px 20px 20px;
}

.v3-next-live h3 {
    margin: 0;
    color: var(--v3-app-text);
    font-size: 25px;
    line-height: 1.12;
    font-weight: 800;
}

.v3-next-live {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
}

.v3-next-session {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.v3-next-session-column {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 0;
}

.v3-next-session-column--context {
    padding-right: 16px;
}

.v3-next-session-column--status,
.v3-next-session-column--impact {
    border-left: 1px solid var(--v3-app-border);
    padding-left: 16px;
}

.v3-next-session-heading {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.v3-next-session-column--context h3 {
    font-size: 22px;
    line-height: 1.12;
}

.v3-next-session-primary,
.v3-next-detail-list,
.v3-next-impact-list {
    min-width: 0;
    display: grid;
}

.v3-next-session-primary {
    gap: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--v3-app-border);
}

.v3-next-session-primary span {
    min-width: 0;
    min-height: 39px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--v3-app-text);
    font-size: 16px;
    font-weight: 800;
}

.v3-next-session-primary .v3-icon,
.v3-next-detail-row .v3-icon {
    color: var(--v3-score-good);
    font-size: 22px;
    text-align: center;
}

.v3-next-session-primary strong,
.v3-next-detail-row strong,
.v3-next-impact-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-next-section-label--impact {
    padding-top: 10px;
    border-top: 1px solid var(--v3-app-border);
}

.v3-next-detail-row {
    min-width: 0;
    min-height: 41px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--v3-app-border);
    color: var(--v3-app-muted);
    font-size: 14px;
    font-weight: 700;
}

.v3-next-detail-row:first-child {
    border-top: 1px solid var(--v3-app-border);
}

.v3-next-detail-row strong {
    max-width: 138px;
    justify-self: end;
    color: var(--v3-app-text);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.v3-next-detail-row .v3-next-detail-value--range {
    color: color-mix(in oklch, var(--v3-signal-blue) 72%, var(--v3-app-text));
}

.v3-rpe-pill {
    --v3-rpe-tone: var(--v3-app-muted);
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    border: 1px solid color-mix(in oklch, var(--v3-rpe-tone) 50%, transparent);
    border-radius: var(--v3-radius-pill);
    color: var(--v3-rpe-tone);
    background: color-mix(in oklch, var(--v3-rpe-tone) 13%, transparent);
    padding: 0 12px;
}

.v3-rpe-pill--low {
    --v3-rpe-tone: var(--v3-score-good);
}

.v3-rpe-pill--moderate,
.v3-rpe-pill--high {
    --v3-rpe-tone: var(--v3-score-below);
}

.v3-rpe-pill--max {
    --v3-rpe-tone: var(--v3-score-critical);
}

.v3-next-impact-list {
    gap: 8px;
}

.v3-next-impact-row {
    --v3-impact-tone: var(--v3-score-good);
    min-width: 0;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--v3-app-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.v3-next-impact-row .v3-icon {
    color: var(--v3-impact-tone);
    font-size: 20px;
    text-align: center;
}

.v3-next-impact-row--watch {
    --v3-impact-tone: var(--v3-score-below);
}

.v3-next-impact-row--concern {
    --v3-impact-tone: var(--v3-score-critical);
}

.v3-next-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
}

.v3-next-meta span {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-content: start;
    gap: 8px;
    border: 1px solid var(--v3-app-border);
    border-radius: 10px;
    color: var(--v3-app-text);
    background: color-mix(in oklch, var(--v3-app-panel-soft) 78%, transparent);
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.v3-next-meta span:first-child {
    padding-left: 12px;
}

.v3-next-meta .v3-icon {
    color: var(--v3-app-muted);
    font-size: 18px;
}

.v3-next-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--v3-app-text);
    font: inherit;
}

.v3-next-meta em {
    grid-column: 2;
    min-width: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.15;
    font-style: normal;
    font-weight: 700;
}

.v3-next-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.v3-next-counts span {
    min-height: 72px;
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 4px 10px;
    border: 1px solid var(--v3-app-border);
    border-radius: 10px;
    color: var(--v3-app-muted);
    background: color-mix(in oklch, var(--v3-app-panel-soft) 78%, transparent);
    padding: 10px 14px;
    font-size: var(--v3-type-caption);
    font-weight: 800;
    line-height: 1.15;
}

.v3-next-counts span:first-child {
    border-left: 1px solid var(--v3-app-border);
}

.v3-next-counts .v3-icon {
    grid-row: span 2;
    color: var(--v3-athletic-green);
    font-size: 28px;
}

.v3-next-counts span:nth-child(2) .v3-icon {
    color: var(--v3-alert-amber);
}

.v3-next-counts span:nth-child(3) .v3-icon {
    color: var(--v3-danger-red);
}

.v3-next-counts span:nth-child(4) .v3-icon {
    color: var(--v3-neutral-grey);
}

.v3-next-counts strong {
    color: var(--v3-app-text);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.v3-next-counts em {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.15;
    font-style: normal;
    font-weight: 800;
}

.v3-next-callout,
.v3-next-empty-note {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--v3-app-muted);
    font-size: 13px;
    font-weight: 800;
}

.v3-next-callout .v3-icon {
    color: var(--v3-accent-foreground);
}

.v3-next-empty {
    gap: 0;
}

.v3-context-row {
    min-height: 61px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--v3-app-border);
}

.v3-context-row:first-child {
    border-top: 0;
}

.v3-context-row > .v3-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
}

.v3-context-row span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.v3-context-row strong {
    color: var(--v3-app-text);
    font-size: 13px;
    font-weight: 800;
}

.v3-context-row em {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-style: normal;
    font-weight: 700;
}

.v3-next-empty-note {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--v3-app-border);
}

.v3-overview-tabs-shell {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    border-bottom: 1px solid var(--v3-app-border);
}

.v3-overview-tabs-shell::before,
.v3-overview-tabs-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    z-index: 2;
    width: 28px;
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--v3-transition);
}

.v3-overview-tabs-shell::before {
    left: 0;
    background: linear-gradient(to right, var(--v3-app-panel), transparent);
}

.v3-overview-tabs-shell::after {
    right: 0;
    background: linear-gradient(to left, var(--v3-app-panel), transparent);
}

.v3-overview-tabs-shell:not(.is-scrollable)::before,
.v3-overview-tabs-shell:not(.is-scrollable)::after,
.v3-overview-tabs-shell.is-at-start::before,
.v3-overview-tabs-shell.is-at-end::after {
    opacity: 0;
}

.v3-overview-tabs {
    flex: 0 0 auto;
    padding: 0 20px;
    scroll-padding-inline: 20px;
}

.v3-squad-tables {
    min-width: 0;
    height: 348px;
    flex: 0 0 348px;
}

.v3-squad-table-panel[hidden] {
    display: none;
}

.v3-squad-table-panel {
    position: relative;
    height: 100%;
    min-height: 0;
}

.v3-squad-table-panel::before,
.v3-squad-table-panel::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    z-index: 4;
    height: 24px;
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--v3-transition);
}

.v3-squad-table-panel::before {
    top: 1px;
    border-radius: 13px 13px 0 0;
    background: linear-gradient(to bottom, color-mix(in oklch, var(--v3-app-panel-soft) 92%, transparent), transparent);
}

.v3-squad-table-panel::after {
    bottom: 1px;
    border-radius: 0 0 13px 13px;
    background: linear-gradient(to top, color-mix(in oklch, var(--v3-app-panel-soft) 92%, transparent), transparent);
}

.v3-squad-table-panel:not(.is-scrollable)::before,
.v3-squad-table-panel:not(.is-scrollable)::after,
.v3-squad-table-panel.is-at-start::before,
.v3-squad-table-panel.is-at-end::after {
    opacity: 0;
}

.v3-squad-table {
    min-width: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--v3-app-border);
    border-radius: 14px;
    background: color-mix(in oklch, var(--v3-app-panel-soft) 54%, transparent);
    padding: 0;
    scrollbar-width: none;
}

.v3-squad-table::-webkit-scrollbar {
    display: none;
}

.v3-squad-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(260px, 0.86fr) minmax(340px, 1.28fr) 42px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--v3-app-border);
    color: var(--v3-app-muted);
    padding: 0 24px;
    font-size: 14px;
    font-weight: 700;
}

.v3-squad-row > [role="cell"]:last-child,
.v3-squad-row > [role="columnheader"]:last-child {
    width: 42px;
    justify-self: end;
}

.v3-squad-row--head {
    min-height: 50px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: color-mix(in oklch, var(--v3-app-panel) 92%, transparent);
    color: var(--v3-app-muted);
    font-size: 14px;
    font-weight: 800;
}

.v3-squad-row:not(.v3-squad-row--head) {
    transition:
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.v3-squad-row:not(.v3-squad-row--head):hover,
.v3-squad-row:not(.v3-squad-row--head):focus-within {
    background: var(--v3-row-hover);
    box-shadow: inset 3px 0 0 var(--v3-athletic-green);
}

.v3-squad-row:not(.v3-squad-row--head):focus-within {
    position: relative;
    z-index: 5;
}

.v3-squad-row--missing {
    grid-template-columns: minmax(230px, 1fr) minmax(220px, 0.9fr) minmax(116px, 0.42fr) 42px;
}

.v3-squad-row--unavailable {
    grid-template-columns: minmax(230px, 0.95fr) minmax(220px, 0.82fr) minmax(300px, 1.3fr) 42px;
}

.v3-squad-row--notes {
    min-height: 78px;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.58fr) 42px;
}

.v3-squad-row--checked-in {
    grid-template-columns: minmax(230px, 1fr) minmax(170px, 0.66fr) minmax(320px, 1.22fr) 42px;
}

.v3-athlete-cell {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.v3-athlete-avatar {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.v3-athlete-cell strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--v3-app-text);
    font-size: 16px;
    line-height: 1.18;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-athlete-cell em {
    display: block;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.28;
    font-style: normal;
    font-weight: 700;
}

.v3-athlete-cell .v3-athlete-availability {
    font-weight: 800;
}

.v3-athlete-cell .v3-athlete-availability--available {
    color: var(--v3-success-foreground);
}

.v3-athlete-cell .v3-athlete-availability--excused {
    color: var(--v3-warning-foreground);
}

.v3-athlete-cell .v3-athlete-availability--sick {
    color: var(--v3-danger-foreground);
}

.v3-athlete-cell .v3-athlete-availability--injured,
.v3-athlete-cell .v3-athlete-availability--unavailable {
    color: var(--v3-danger-foreground);
}

.v3-readiness-cell {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--v3-app-text);
    font-weight: 800;
}

.v3-readiness-cell strong {
    min-width: 48px;
    color: var(--v3-app-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.v3-readiness-cell.v3-score-cell--in strong,
.v3-readiness-cell.v3-score-cell--above strong {
    color: var(--v3-athletic-green-strong);
}

.v3-readiness-cell.v3-score-cell--below strong {
    color: var(--v3-alert-amber);
}

.v3-readiness-cell.v3-score-cell--critical strong {
    color: var(--v3-danger-red);
}

.v3-readiness-cell.v3-score-cell--missing strong {
    color: var(--v3-app-muted);
}

.v3-gap-cell {
    color: var(--v3-app-text);
    font-weight: 800;
}

.v3-gap-cell.is-negative {
    color: var(--v3-danger-foreground);
}

.v3-signal-cell {
    position: relative;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.v3-signal-token {
    --v3-squad-signal-tone: var(--v3-app-muted);
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--v3-squad-signal-tone);
    border-radius: 8px;
    color: var(--v3-squad-signal-tone);
    background: transparent;
    box-shadow: none;
    padding: 4px 10px 5px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.22;
    white-space: nowrap;
}

.v3-signal-token .v3-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    background: var(--v3-squad-signal-tone);
    margin-right: 5px;
}

.v3-signal-token span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-signal-token[hidden] {
    display: none;
}

.v3-signal-overflow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.v3-signal-overflow.is-open {
    z-index: 6;
}

.v3-signal-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 7;
    display: flex;
    max-width: min(260px, 70vw);
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.v3-signal-popover.is-above {
    top: auto;
    bottom: calc(100% + 6px);
}

.v3-signal-popover[hidden] {
    display: none;
}

.v3-signal-popover .v3-signal-token {
    max-width: 210px;
}

.v3-signal-token--missing {
    --v3-squad-signal-tone: var(--v3-neutral-grey);
}

.v3-signal-token--clear {
    --v3-squad-signal-tone: var(--v3-success-foreground);
}

.v3-signal-token--availability,
.v3-signal-token--availability-injured,
.v3-signal-token--injury {
    --v3-squad-signal-tone: var(--v3-danger-red);
}

.v3-signal-token--availability-sick,
.v3-signal-token--sleep,
.v3-signal-token--energy,
.v3-signal-token--soreness,
.v3-signal-token--mood,
.v3-signal-token--motivation,
.v3-signal-token--nutrition,
.v3-signal-token--hydration,
.v3-signal-token--readiness {
    --v3-squad-signal-tone: var(--v3-alert-amber);
}

.v3-signal-token--availability-excused {
    --v3-squad-signal-tone: var(--v3-alert-amber);
}

.v3-signal-token--note {
    --v3-squad-signal-tone: var(--v3-signal-blue);
}

.v3-signal-token--neutral {
    --v3-squad-signal-tone: var(--v3-neutral-grey);
}

.v3-signal-token--green {
    --v3-squad-signal-tone: var(--v3-score-good);
}

.v3-signal-token--amber {
    --v3-squad-signal-tone: var(--v3-alert-amber);
}

.v3-signal-token--red {
    --v3-squad-signal-tone: var(--v3-danger-red);
}

.v3-signal-token--blue {
    --v3-squad-signal-tone: var(--v3-signal-blue);
}

.v3-signal-empty {
    color: color-mix(in oklch, var(--v3-app-muted) 70%, transparent);
}

.v3-signal-more {
    min-width: 38px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in oklch, var(--v3-app-soft) 42%, transparent);
    border-radius: 8px;
    color: var(--v3-app-text);
    background: color-mix(in oklch, var(--v3-app-panel-muted) 76%, transparent);
    padding: 4px 9px 5px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.22;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        transform 150ms ease;
}

.v3-signal-more:hover,
.v3-signal-more:focus-visible,
.v3-signal-more[aria-expanded="true"] {
    border-color: var(--v3-athletic-green);
    background: color-mix(in oklch, var(--v3-app-panel-muted) 92%, transparent);
}

.v3-signal-more:focus-visible {
    outline: none;
    box-shadow: var(--v3-focus-ring);
}

.v3-signal-more:active {
    transform: scale(0.96);
}

.v3-overview-detail-cell,
.v3-overview-context-cell,
.v3-overview-note-cell,
.v3-overview-reminder-cell {
    width: 100%;
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 3px;
    color: var(--v3-app-text);
}

.v3-overview-detail-cell strong,
.v3-overview-context-cell strong,
.v3-overview-note-cell strong {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.22;
    font-weight: 800;
    overflow-wrap: anywhere;
    white-space: normal;
}

.v3-overview-detail-cell em,
.v3-overview-context-cell em {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.24;
    font-style: normal;
    font-weight: 700;
    overflow-wrap: anywhere;
    white-space: normal;
}

.v3-overview-note-cell strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.28;
    white-space: normal;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.v3-overview-note-meta {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.2;
    font-style: normal;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v3-overview-context-cell--snapshot {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 8px;
}

.v3-overview-context-cell--snapshot em {
    color: var(--v3-app-muted);
}

.v3-overview-reminder-sent {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--v3-success-foreground);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-overview-reminder-sent[hidden] {
    display: none;
}

.v3-squad-row .v3-row-action {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 0;
    color: color-mix(in oklch, var(--v3-app-text) 86%, transparent);
    background: transparent;
    padding: 0;
    justify-content: center;
    font-size: 20px;
}

.v3-squad-row .v3-row-action:hover,
.v3-squad-row .v3-row-action:focus-visible {
    color: var(--v3-accent-foreground);
    background: transparent;
}

.v3-squad-row .v3-row-action:disabled,
.v3-squad-row .v3-row-action[aria-disabled="true"] {
    cursor: default;
    opacity: 0.62;
}

.v3-squad-row .v3-row-action[aria-busy="true"] {
    cursor: progress;
    opacity: 0.62;
}

.v3-squad-empty {
    display: grid;
    gap: 12px;
    padding: 26px 0 18px;
    border-bottom: 1px solid var(--v3-app-border);
}

.v3-squad-empty > div {
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
}

.v3-squad-empty .v3-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--v3-app-muted);
    background: var(--v3-app-panel-muted);
    font-size: 24px;
}

.v3-skeleton-line {
    height: 14px;
    border-radius: var(--v3-radius-pill);
    background: var(--v3-app-panel-muted);
}

.v3-skeleton-line:nth-of-type(2) {
    width: 78%;
}

.v3-skeleton-line:nth-of-type(3) {
    width: 68%;
}

.v3-skeleton-line:nth-of-type(4) {
    width: 58%;
}

.v3-panel-footer-action {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: calc(100% - 40px);
    margin: 10px 20px 16px;
    border: 0;
    color: var(--v3-accent-foreground);
    background: transparent;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.v3-setup-progress {
    min-width: 150px;
    display: grid;
    grid-template-columns: auto minmax(78px, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-setup-progress i {
    height: 8px;
    border-radius: var(--v3-radius-pill);
    background: var(--v3-app-panel-muted);
    overflow: hidden;
}

.v3-setup-progress b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--v3-athletic-green);
}

.v3-team-switcher:hover,
.v3-team-switcher:focus-visible,
.v3-app-help:hover,
.v3-app-help:focus-visible,
.v3-app-theme-control:hover,
.v3-app-theme-control:focus-visible,
.v3-profile-pill:hover,
.v3-profile-pill:focus-visible,
.v3-small-action:hover,
.v3-small-action:focus-visible,
.v3-context-row button:hover,
.v3-context-row button:focus-visible,
.v3-context-row a:hover,
.v3-context-row a:focus-visible,
.v3-row-action:hover,
.v3-row-action:focus-visible,
.v3-panel-footer-action:hover,
.v3-panel-footer-action:focus-visible {
    border-color: var(--v3-athletic-green);
}

.v3-profile-pill:hover,
.v3-profile-pill:focus-visible {
    box-shadow: var(--v3-shadow-border-hover);
}

button:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--v3-focus-ring);
}

@media (min-width: 1261px) {
    body {
        overflow: hidden;
    }

    .v3-app-shell {
        height: var(--v3-viewport-height);
        grid-template-columns: 260px minmax(0, 1fr);
        overflow: hidden;
    }

    .v3-app-rail {
        min-height: 0;
        height: var(--v3-viewport-height);
        gap: 14px;
        padding: 20px 14px 14px;
        overflow: hidden;
    }

    .v3-app-brand {
        min-height: 42px;
    }

    .v3-app-brand img {
        width: 172px;
    }

    .v3-team-switcher {
        min-height: 62px;
        grid-template-columns: 34px minmax(0, 1fr) 16px;
        gap: 10px;
        padding: 8px 10px;
    }

    .v3-team-switcher-logo {
        width: 34px;
        height: 34px;
    }

    .v3-team-switcher-logo .v3-icon {
        font-size: 18px;
    }

    .v3-team-menu {
        position: fixed;
        z-index: 80;
        top: 146px;
        left: 14px;
        width: 232px;
        max-height: calc(var(--v3-viewport-height) - 160px);
    }

    .v3-app-nav {
        gap: 7px;
    }

    .v3-app-nav-item {
        min-height: 42px;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
        padding: 0 11px;
        font-size: 14px;
    }

    .v3-app-nav-item .v3-icon {
        font-size: 19px;
    }

    .v3-app-rail-footer {
        gap: 8px;
    }

    .v3-app-help {
        min-height: 38px;
        padding-inline: 10px;
        font-size: 13px;
    }

    .v3-app-theme-control {
        width: 56px;
        height: 30px;
    }

    .v3-coach-avatar {
        width: 36px;
        height: 36px;
        font-size: var(--v3-type-caption);
    }

    .v3-app-main {
        --v3-coach-workspace-offset: 98px;
        height: var(--v3-viewport-height);
        padding: 18px 12px;
        overflow: hidden;
    }

    .v3-coach-account-anchor {
        position: fixed;
        z-index: 80;
        top: 18px;
        right: 12px;
        display: block;
    }

    .v3-dashboard-header {
        min-height: 52px;
        margin-bottom: 10px;
    }

    .v3-dashboard-heading h1 {
        font-size: 31px;
    }

    .v3-dashboard-actions {
        gap: 8px;
    }

    .v3-profile-pill {
        min-height: 40px;
    }

    .v3-profile-pill {
        min-width: 198px;
        grid-template-columns: 36px minmax(0, 1fr) 14px;
        padding: 5px 9px;
    }

    .v3-dashboard {
        height: calc(var(--v3-viewport-height) - var(--v3-coach-workspace-offset));
        grid-template-rows: minmax(0, 1fr);
        gap: 14px;
    }

    .v3-dashboard-grid {
        min-height: 0;
        height: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "readiness next"
            "overview actions";
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .v3-dashboard-panel {
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .v3-panel-header {
        min-height: 40px;
        flex: 0 0 auto;
        padding: 10px 18px 5px;
    }

    .v3-panel-title h2 {
        font-size: 18px;
    }

    .v3-dashboard-panel--readiness .v3-panel-header {
        min-height: 40px;
        padding: 8px 18px 2px;
    }

    .v3-dashboard-panel--readiness .v3-panel-title h2 {
        font-size: 18px;
    }

    .v3-dashboard-panel--readiness .v3-panel-title > .v3-icon:first-child {
        font-size: 23px;
    }

    .v3-readiness-layout {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 0 18px 7px;
    }

    .v3-score-block {
        gap: 8px;
        padding: 0;
    }

    .v3-readiness-insights {
        grid-template-columns: minmax(0, 1fr) minmax(172px, 0.88fr);
        gap: 12px;
        padding-top: 10px;
    }

    .v3-signal-block,
    .v3-coach-impact {
        gap: 4px;
    }

    .v3-signal-row {
        min-height: 24px;
        grid-template-columns: 20px minmax(0, 1fr) max-content;
        gap: 6px;
    }

    .v3-signal-row .v3-icon,
    .v3-impact-row .v3-icon {
        font-size: 15px;
    }

    .v3-signal-row strong,
    .v3-impact-row {
        font-size: var(--v3-type-caption);
    }

    .v3-signal-row span {
        font-size: var(--v3-type-caption);
    }

    .v3-squad-status-block {
        gap: 5px;
        padding-left: 12px;
    }

    .v3-impact-list {
        gap: 3px;
    }

    .v3-impact-row {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 6px;
        line-height: 1.16;
    }

    .v3-dashboard-empty-inline {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
        padding-top: 6px;
    }

    .v3-dashboard-empty-inline > .v3-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .v3-dashboard-empty-inline strong,
    .v3-squad-empty strong {
        font-size: 13px;
    }

    .v3-dashboard-empty-inline span,
    .v3-squad-empty span {
        font-size: var(--v3-type-caption);
    }

    .v3-small-action,
    .v3-context-row button,
    .v3-context-row a,
    .v3-row-action {
        min-height: 30px;
        padding: 0 10px;
        font-size: var(--v3-type-caption);
    }

    .v3-plan-live,
    .v3-next-live,
    .v3-next-empty {
        flex: 1 1 auto;
        min-height: 0;
        gap: 7px;
        padding: 0 18px 6px;
    }

    .v3-plan-section {
        gap: 7px;
    }

    .v3-plan-section + .v3-plan-section {
        padding-top: 9px;
    }

    .v3-plan-feature {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
    }

    .v3-plan-feature-icon {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .v3-plan-feature h3 {
        font-size: 18px;
    }

    .v3-plan-feature p,
    .v3-plan-context-row,
    .v3-plan-session-meta,
    .v3-plan-session-prompt {
        font-size: var(--v3-type-caption);
    }

    .v3-plan-feature p {
        margin-top: 3px;
    }

    .v3-plan-context-list {
        gap: 4px;
    }

    .v3-plan-context-row {
        grid-template-columns: 21px minmax(0, 1fr);
        gap: 6px;
    }

    .v3-plan-context-row .v3-icon,
    .v3-plan-session-meta .v3-icon,
    .v3-plan-session-prompt .v3-icon {
        font-size: 15px;
    }

    .v3-plan-session-meta {
        gap: 5px 11px;
        margin-top: 4px;
    }

    .v3-plan-session-details {
        min-height: 48px;
    }

    .v3-plan-session-detail {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 2px 7px;
        padding: 6px 0;
    }

    .v3-plan-session-detail + .v3-plan-session-detail {
        padding-left: 10px;
    }

    .v3-plan-session-detail .v3-icon {
        font-size: 17px;
    }

    .v3-plan-session-detail span {
        font-size: var(--v3-type-caption);
    }

    .v3-plan-session-detail strong {
        font-size: var(--v3-type-caption);
    }

    .v3-plan-session-empty {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 6px 0;
    }

    .v3-plan-session-empty > .v3-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .v3-plan-session-empty strong {
        font-size: var(--v3-type-caption);
    }

    .v3-plan-session-empty span {
        font-size: var(--v3-type-caption);
    }

    .v3-next-live h3 {
        font-size: 20px;
    }

    .v3-next-session {
        height: 100%;
        grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    }

    .v3-next-session-column {
        gap: 8px;
        padding: 0;
    }

    .v3-next-session-column--context {
        padding-right: 12px;
    }

    .v3-next-session-column--status,
    .v3-next-session-column--impact {
        padding-left: 12px;
    }

    .v3-next-session-heading {
        gap: 3px;
    }

    .v3-next-session-column--context h3 {
        font-size: 17px;
    }

    .v3-next-session-primary {
        padding-bottom: 5px;
    }

    .v3-next-session-primary span {
        min-height: 28px;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 7px;
        font-size: var(--v3-type-caption);
    }

    .v3-next-session-primary i,
    .v3-next-detail-row .v3-icon {
        font-size: 17px;
    }

    .v3-dashboard-section-label {
        font-size: var(--v3-type-caption);
    }

    .v3-next-section-label--impact {
        padding-top: 6px;
    }

    .v3-next-detail-row {
        min-height: 28px;
        grid-template-columns: 22px minmax(0, 1fr) max-content;
        gap: 7px;
        font-size: var(--v3-type-caption);
    }

    .v3-next-detail-row strong {
        max-width: 88px;
        font-size: var(--v3-type-caption);
    }

    .v3-rpe-pill {
        min-height: 22px;
        padding: 0 8px;
    }

    .v3-next-impact-list {
        gap: 5px;
    }

    .v3-next-impact-row {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 7px;
        font-size: var(--v3-type-caption);
        line-height: 1.2;
    }

    .v3-next-impact-row .v3-icon {
        font-size: 16px;
    }

    .v3-next-meta {
        gap: 7px;
    }

    .v3-next-meta span {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 6px;
        padding: 6px 8px;
        font-size: var(--v3-type-caption);
    }

    .v3-next-meta .v3-icon {
        font-size: 16px;
    }

    .v3-next-meta em {
        font-size: var(--v3-type-caption);
    }

    .v3-next-counts span {
        min-height: 48px;
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 2px 8px;
        padding: 6px 8px;
        font-size: var(--v3-type-caption);
    }

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

    .v3-next-counts strong {
        font-size: 18px;
    }

    .v3-next-counts em {
        font-size: var(--v3-type-caption);
    }

    .v3-next-callout,
    .v3-next-empty-note {
        min-height: 28px;
        font-size: var(--v3-type-caption);
    }

    .v3-next-empty-note {
        min-height: 28px;
        margin-top: 6px;
        padding-top: 8px;
    }

    .v3-context-row {
        min-height: 43px;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .v3-context-row > .v3-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .v3-context-row strong {
        font-size: var(--v3-type-caption);
    }

    .v3-context-row em {
        font-size: var(--v3-type-caption);
    }

    .v3-overview-tabs {
        flex: 0 0 auto;
        padding: 0 18px;
    }

    .v3-squad-tables {
        height: 286px;
        flex-basis: 286px;
    }

    .v3-squad-table {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        border-radius: 12px;
        padding: 0;
    }

    .v3-squad-row {
        min-width: 0;
        min-height: 58px;
        grid-template-columns: minmax(132px, 1.1fr) minmax(108px, 0.82fr) minmax(0, 1.08fr) 36px;
        gap: 7px;
        padding: 0 10px;
        font-size: var(--v3-type-caption);
    }

    .v3-squad-row--missing {
        grid-template-columns: minmax(132px, 1fr) minmax(128px, 0.92fr) minmax(78px, 0.48fr) 36px;
    }

    .v3-squad-row--unavailable {
        grid-template-columns: minmax(132px, 0.92fr) minmax(116px, 0.75fr) minmax(150px, 1.18fr) 36px;
    }

    .v3-squad-row--notes {
        min-height: 72px;
        grid-template-columns: minmax(154px, 0.68fr) minmax(0, 1.32fr) 36px;
    }

    .v3-squad-row--checked-in {
        grid-template-columns: minmax(132px, 1fr) minmax(92px, 0.58fr) minmax(148px, 1.08fr) 36px;
    }

    .v3-squad-row > [role="cell"]:last-child,
    .v3-squad-row > [role="columnheader"]:last-child {
        width: 36px;
    }

    .v3-squad-row--head {
        min-height: 38px;
        font-size: var(--v3-type-caption);
    }

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

    .v3-athlete-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .v3-athlete-cell strong {
        font-size: var(--v3-type-caption);
    }

    .v3-athlete-cell em {
        font-size: var(--v3-type-caption);
    }

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

    .v3-readiness-cell strong {
        min-width: 28px;
        font-size: 17px;
    }

    .v3-signal-cell {
        gap: 5px;
    }

    .v3-signal-token,
    .v3-signal-more {
        min-height: 24px;
        border-radius: 7px;
        padding: 3px 6px 4px;
        font-size: var(--v3-type-caption);
        line-height: 1.2;
    }

    .v3-signal-more {
        min-width: 34px;
    }

    .v3-signal-popover {
        max-width: 210px;
        gap: 5px;
        padding: 0;
    }

    .v3-signal-popover .v3-signal-token {
        max-width: 180px;
    }

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

    .v3-overview-detail-cell em,
    .v3-overview-context-cell em,
    .v3-overview-note-meta {
        font-size: var(--v3-type-caption);
    }

    .v3-overview-reminder-sent {
        min-height: 24px;
        font-size: var(--v3-type-caption);
    }

    .v3-squad-row .v3-row-action {
        width: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 16px;
    }

    .v3-squad-empty {
        gap: 8px;
        padding: 16px 0 10px;
    }

    .v3-squad-empty > div {
        gap: 5px;
    }

    .v3-squad-empty .v3-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .v3-skeleton-line {
        height: 11px;
    }

    .v3-panel-footer-action {
        min-height: 34px;
        flex: 0 0 auto;
        width: calc(100% - 36px);
        margin: 4px 18px 8px;
        font-size: 13px;
    }

    .v3-setup-progress {
        min-width: 132px;
        grid-template-columns: auto minmax(58px, 1fr);
        gap: 8px;
        font-size: var(--v3-type-caption);
    }

}

@media (min-width: 1261px) and (max-height: 719px) {
    body {
        overflow: auto;
    }

    .v3-app-shell {
        min-height: var(--v3-viewport-height);
        height: auto;
        overflow: visible;
    }

    .v3-app-main {
        min-height: var(--v3-viewport-height);
        height: auto;
        overflow: visible;
    }

    .v3-dashboard,
    .v3-dashboard-grid {
        height: auto;
    }

    .v3-dashboard-grid {
        grid-template-rows: auto auto;
        overflow: visible;
    }

    .v3-dashboard-panel,
    .v3-squad-table {
        overflow: visible;
    }
}

@media (max-width: 1260px) {
    .v3-app-shell {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .v3-dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "readiness"
            "next"
            "overview"
            "actions";
    }
}

@media (min-width: 921px) and (max-width: 1260px) {
    .v3-coach-account-anchor {
        position: fixed;
        z-index: 80;
        top: 26px;
        right: 18px;
        display: block;
    }
}

@media (max-width: 920px) {
    body:has([data-v3-shell-account-toggle][aria-expanded="true"]) {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body:has([data-v3-shell-account-toggle][aria-expanded="true"]) .v3-app-rail {
        z-index: 80;
    }

    body:has([data-v3-shell-account-toggle][aria-expanded="true"]) .v3-app-main {
        overflow-y: hidden;
    }

    body:has([data-v3-shell-account-toggle][aria-expanded="true"]) .v3-app-nav {
        pointer-events: none;
    }

    body:has([data-v3-shell-account-toggle][aria-expanded="true"]) .v3-shell-menu-scrim {
        position: fixed;
        z-index: 70;
        inset: 0;
        display: block;
        background: transparent;
        overscroll-behavior: contain;
        touch-action: none;
    }

    .v3-app-shell {
        grid-template-columns: 1fr;
    }

    .v3-dashboard-panel--readiness {
        min-height: 0;
    }

    .v3-app-rail {
        min-height: auto;
        grid-template-rows: auto auto;
        grid-template-columns: minmax(0, 1fr) minmax(176px, 1.4fr) auto;
        gap: 12px;
        padding:
            calc(16px + var(--v3-safe-top))
            max(16px, calc(12px + var(--v3-safe-right)))
            16px
            max(16px, calc(12px + var(--v3-safe-left)));
        border-right: 0;
        border-bottom: 1px solid oklch(0.76 0.018 220 / 0.12);
    }

    .v3-app-brand {
        min-height: 42px;
    }

    .v3-app-brand img {
        width: 156px;
    }

    .v3-team-switcher {
        min-height: 56px;
        grid-column: 2;
        grid-row: 1;
    }

    .v3-coach-account-anchor {
        grid-column: 3;
        grid-row: 1;
        display: block;
    }

    .v3-app-nav {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow-x: auto;
    }

    .v3-app-rail-footer {
        display: none;
    }

    .v3-app-main {
        padding:
            22px
            max(16px, calc(12px + var(--v3-safe-right)))
            28px
            max(16px, calc(12px + var(--v3-safe-left)));
    }

    .v3-dashboard-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .v3-dashboard-actions {
        display: none;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .v3-profile-pill {
        min-width: 44px;
        width: 44px;
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .v3-profile-pill > span:not(.v3-coach-avatar),
    .v3-profile-pill > .v3-icon {
        display: none;
    }

    .v3-profile-pill .v3-coach-avatar {
        width: 36px;
        height: 36px;
        justify-self: center;
    }

    .v3-coach-account-anchor .v3-shell-popover--header {
        max-height: calc(var(--v3-viewport-height) - var(--v3-safe-top) - 96px);
        overflow-y: auto;
    }

    .v3-readiness-layout {
        grid-template-columns: 1fr;
    }

    .v3-score-block {
        padding: 0 0 16px;
        border-bottom: 1px solid var(--v3-app-border);
    }

    .v3-readiness-insights {
        grid-template-columns: 1fr;
    }

    .v3-squad-status-block {
        border-top: 1px solid var(--v3-app-border);
        border-left: 0;
        padding-top: 14px;
        padding-left: 0;
    }
}

@media (max-width: 680px) {
    .v3-app-shell {
        position: relative;
        min-height: 0;
        height: var(--v3-viewport-height);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        overflow: hidden;
        padding-bottom: 0;
    }

    .v3-app-rail {
        position: static;
        z-index: 40;
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 10px;
        padding:
            calc(10px + var(--v3-safe-top))
            max(12px, calc(8px + var(--v3-safe-right)))
            10px
            max(12px, calc(8px + var(--v3-safe-left)));
        box-shadow: 0 8px 24px oklch(0.08 0.012 220 / 0.20);
    }

    .v3-app-brand {
        min-width: 0;
        min-height: 44px;
    }

    .v3-app-brand img {
        width: 132px;
    }

    .v3-team-switcher-anchor {
        display: none;
    }

    .v3-coach-account-anchor {
        position: relative;
        z-index: 1;
        grid-column: 2;
        grid-row: 1;
        display: block;
    }

    .v3-app-nav {
        position: fixed;
        z-index: 70;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: var(--v3-mobile-nav-height);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        gap: 2px;
        overflow: visible;
        border-top: 1px solid oklch(0.76 0.018 220 / 0.16);
        padding:
            5px
            max(6px, var(--v3-safe-right))
            var(--v3-mobile-nav-safe-bottom)
            max(6px, var(--v3-safe-left));
        background: var(--v3-brand-rail);
        box-shadow: 0 -10px 28px oklch(0.08 0.012 220 / 0.24);
    }

    .v3-app-nav-item {
        min-height: 48px;
        display: grid;
        grid-template-columns: 1fr;
        place-items: center;
        align-content: center;
        gap: 2px;
        border-radius: 9px;
        padding: 4px 2px;
        font-size: var(--v3-type-caption);
        line-height: 1.1;
        text-align: center;
    }

    .v3-app-nav-item .v3-icon {
        font-size: 19px;
    }

    .v3-app-main {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding:
            18px
            max(12px, calc(8px + var(--v3-safe-right)))
            calc(24px + var(--v3-mobile-nav-height))
            max(12px, calc(8px + var(--v3-safe-left)));
    }

    .v3-dashboard-header {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        margin-bottom: 14px;
    }

    .v3-dashboard-heading-meta {
        grid-column: 1 / -1;
    }

    .v3-dashboard-actions {
        display: flex;
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .v3-profile-pill {
        min-width: 44px;
        width: 44px;
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .v3-profile-pill > span:not(.v3-coach-avatar),
    .v3-profile-pill > .v3-icon {
        display: none;
    }

    .v3-profile-pill .v3-coach-avatar {
        width: 36px;
        height: 36px;
        justify-self: center;
    }

    .v3-dashboard-heading h1 {
        font-size: 28px;
    }

    .v3-dashboard-panel {
        border-radius: 12px;
    }

    .v3-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .v3-plan-live {
        padding-inline: 18px;
    }

    .v3-plan-feature {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .v3-plan-feature-icon {
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .v3-plan-feature h3 {
        font-size: 20px;
    }

    .v3-plan-session-details {
        grid-template-columns: 1fr;
    }

    .v3-plan-session-detail + .v3-plan-session-detail {
        border-top: 1px solid var(--v3-app-border);
        border-left: 0;
        padding-left: 0;
    }

    .v3-plan-session-empty {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .v3-plan-session-empty .v3-small-action {
        grid-column: 2;
        justify-self: start;
    }

    .v3-next-session {
        grid-template-columns: 1fr;
    }

    .v3-next-session-column--context {
        padding-right: 0;
    }

    .v3-next-session-column--status,
    .v3-next-session-column--impact {
        border-top: 1px solid var(--v3-app-border);
        border-left: 0;
        padding-top: 16px;
        padding-left: 0;
    }

    .v3-next-detail-row {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .v3-next-detail-row strong {
        grid-column: 2;
        justify-self: start;
        max-width: 100%;
        text-align: left;
    }

    .v3-next-meta,
    .v3-next-counts {
        grid-template-columns: 1fr 1fr;
    }

    .v3-dashboard-empty-inline,
    .v3-context-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .v3-dashboard-empty-inline .v3-small-action,
    .v3-context-row button,
    .v3-context-row a {
        grid-column: 2;
        justify-self: start;
    }

    .v3-squad-table {
        overflow-x: auto;
    }

    .v3-squad-row {
        min-width: 780px;
        grid-template-columns: 216px 214px 286px 40px;
        gap: 8px;
    }

    .v3-squad-row--missing {
        grid-template-columns: 220px 220px 160px 40px;
    }

    .v3-squad-row--unavailable {
        grid-template-columns: 210px 190px 300px 40px;
    }

    .v3-squad-row--notes {
        min-width: 708px;
        grid-template-columns: 166px 466px 40px;
    }

    .v3-squad-row--checked-in {
        grid-template-columns: 220px 160px 320px 40px;
    }

    .v3-coach-account-anchor .v3-shell-popover--header {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        width: min(300px, calc(100vw - var(--v3-safe-left) - var(--v3-safe-right) - 24px));
        min-width: 0;
        max-height: calc(var(--v3-viewport-height) - var(--v3-safe-top) - var(--v3-mobile-nav-height) - 96px);
        overflow-y: auto;
    }

    .v3-shell-popover a,
    .v3-shell-popover form button {
        min-height: 44px;
    }

    .v3-profile-mobile-teams {
        display: grid;
        gap: 5px;
        border-top: 1px solid var(--v3-app-border);
        border-bottom: 1px solid var(--v3-app-border);
        padding-block: 8px;
    }

    .v3-profile-mobile-teams > span {
        color: var(--v3-app-muted);
        font-size: var(--v3-type-caption);
        font-weight: 800;
    }

    .v3-profile-mobile-teams form button {
        border-color: transparent;
        background: transparent;
    }

    .v3-profile-mobile-teams form button[aria-current="true"] {
        color: var(--v3-accent-foreground);
    }
}

/* Keep the two top-dashboard dividers aligned on desktop-sized coach workspaces. */
@media (min-width: 1261px) {
    .v3-dashboard-panel--next .v3-readiness-context {
        grid-template-rows: minmax(112px, 1fr) minmax(126px, 1fr);
    }
}

@media (min-width: 681px) and (max-width: 920px) and (max-height: 520px) {
    .v3-app-rail {
        grid-template-columns: 130px 180px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        gap: 6px;
        padding:
            calc(8px + var(--v3-safe-top))
            max(10px, calc(8px + var(--v3-safe-right)))
            8px
            max(10px, calc(8px + var(--v3-safe-left)));
    }

    .v3-app-brand img {
        width: 132px;
    }

    .v3-team-switcher {
        min-height: 48px;
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: 32px minmax(0, 1fr) 14px;
        gap: 8px;
        padding: 5px 8px;
    }

    .v3-team-switcher-logo {
        width: 32px;
        height: 32px;
    }

    .v3-app-nav {
        grid-column: 3;
        grid-row: 1;
        gap: 4px;
        overflow: visible;
    }

    .v3-app-nav-item {
        min-height: 48px;
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 4px;
        padding-inline: 2px;
        font-size: var(--v3-type-caption);
    }
}

/* Shared pressed states remain part of the app shell. */
.v3-team-switcher:active,
.v3-app-nav-item:active,
.v3-app-help:active,
.v3-app-theme-control:active,
.v3-profile-pill:active,
.v3-shell-popover a:active,
.v3-shell-popover form button:active,
.v3-small-action:active,
.v3-context-row button:active,
.v3-context-row a:active,
.v3-row-action:active,
.v3-panel-footer-action:active {
    transform: scale(0.96);
}

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--v3-danger-foreground);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

:root[data-v3-theme="light"] .errorlist {
    color: var(--v3-danger-foreground);
}

/* Approved Dashboard direction: flat readiness rows and a Day Type-led plan. */
.v3-dashboard-panel--readiness .v3-panel-title > .v3-icon:first-child {
    color: var(--v3-score-good);
}

.v3-dashboard-panel--next .v3-panel-title > .v3-icon:first-child {
    color: var(--v3-alert-amber);
}

.v3-score-block {
    gap: 0;
    padding-top: 4px;
}

.v3-readiness-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 16px;
}

.v3-signal-block,
.v3-squad-status-block {
    display: grid;
    grid-template-rows: 30px auto;
    align-content: start;
    gap: 0;
}

.v3-squad-status-block {
    padding-left: 18px;
}

.v3-squad-status-heading {
    min-width: 0;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.v3-squad-status-heading > span {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 700;
    line-height: 1.15;
    text-align: right;
    text-wrap: pretty;
}

.v3-signal-list,
.v3-squad-status-list {
    min-width: 0;
    display: grid;
    border-top: 1px solid var(--v3-app-border);
}

.v3-signal-row,
.v3-squad-status-row {
    min-height: 42px;
    border-bottom: 1px solid var(--v3-app-border);
}

.v3-signal-row:last-child,
.v3-squad-status-row:last-child {
    border-bottom: 0;
}

.v3-signal-row:first-child {
    border-top: 0;
}

.v3-signal-row {
    grid-template-columns: 27px minmax(0, 1fr) max-content;
    gap: 9px;
}

.v3-signal-row .v3-icon {
    font-size: 19px;
}

.v3-signal-row strong {
    font-size: var(--v3-type-caption);
}

.v3-signal-row span {
    font-size: var(--v3-type-caption);
}

.v3-squad-status-row {
    --v3-readiness-status-tone: var(--v3-app-muted);
    min-width: 0;
    display: grid;
    grid-template-columns: 22px 32px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    color: var(--v3-app-text);
    text-decoration: none;
    transition: background var(--v3-transition), color var(--v3-transition);
}

.v3-squad-status-row .v3-icon {
    color: var(--v3-readiness-status-tone);
    font-size: 20px;
    text-align: center;
}

.v3-squad-status-row strong {
    color: var(--v3-readiness-status-tone);
    font-family: var(--v3-font-display);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.v3-squad-status-row span {
    min-width: 0;
    font-size: var(--v3-type-caption);
    font-weight: 800;
    text-wrap: pretty;
}

.v3-squad-status-row:focus-visible {
    outline: 2px solid color-mix(in oklch, var(--v3-readiness-status-tone) 42%, transparent);
    outline-offset: 2px;
}

.v3-squad-status-row--available {
    --v3-readiness-status-tone: var(--v3-score-good);
}

.v3-squad-status-row--unavailable {
    --v3-readiness-status-tone: var(--v3-score-critical);
}

.v3-squad-status-row--review {
    --v3-readiness-status-tone: var(--v3-score-below);
}

.v3-plan-live {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 4px 20px 18px;
}

.v3-plan-day-grid {
    min-width: 0;
    min-height: 63px;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    align-items: stretch;
    padding: 0;
}

.v3-plan-day-main {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
    padding-right: 24px;
}

.v3-plan-day-main .v3-dashboard-section-label {
    font-size: var(--v3-type-caption);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.v3-plan-day-main h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--v3-warning-foreground);
    font-family: var(--v3-font-display);
    font-size: 26px;
    line-height: 1;
    font-weight: 800;
}

.v3-plan-day-main p {
    margin: 0;
    color: var(--v3-app-muted);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
}

.v3-plan-day-facts {
    min-width: 0;
    display: grid;
    align-content: center;
    border-left: 1px solid var(--v3-app-border);
    padding-left: 24px;
}

.v3-plan-fact {
    min-width: 0;
    min-height: 31px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.25;
    font-weight: 800;
}

.v3-plan-fact + .v3-plan-fact {
    border-top: 1px solid var(--v3-app-border);
    padding-top: 7px;
}

.v3-plan-fact .v3-icon {
    color: var(--v3-app-muted);
    font-size: 18px;
    text-align: center;
}

.v3-plan-fact strong {
    margin-left: 4px;
    color: var(--v3-app-text);
    font-size: 13px;
    font-weight: 800;
}

.v3-plan-fact--range .v3-icon,
.v3-plan-fact--range strong,
.v3-plan-fact--outlook.is-good strong {
    color: var(--v3-score-good);
}

.v3-plan-fact--outlook.is-watch strong {
    color: var(--v3-score-below);
}

.v3-plan-fact--outlook.is-concern strong {
    color: var(--v3-score-critical);
}

.v3-plan-fact--outlook strong {
    display: block;
    margin: 4px 0 0;
}

.v3-plan-next-row {
    min-width: 0;
    min-height: 35px;
    display: grid;
    grid-template-columns: minmax(100px, 0.42fr) minmax(0, 1.58fr) max-content;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--v3-app-border);
    border-bottom: 1px solid var(--v3-app-border);
    padding: 1px 0;
}

.v3-plan-next-label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-plan-next-label .v3-icon {
    font-size: 18px;
}

.v3-plan-next-content {
    min-width: 0;
}

.v3-plan-next-content strong,
.v3-plan-next-content span {
    display: block;
}

.v3-plan-next-content strong {
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 800;
}

.v3-plan-next-content span {
    margin-top: 2px;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.v3-plan-next-action {
    color: color-mix(in oklch, var(--v3-signal-blue) 76%, var(--v3-app-text));
    font-size: var(--v3-type-caption);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}

.v3-plan-next-action:hover,
.v3-plan-next-action:focus-visible {
    color: var(--v3-app-text);
}

.v3-plan-impact {
    min-width: 0;
    display: grid;
    grid-template-rows: 30px auto;
    gap: 0;
    padding-top: 13px;
}

.v3-plan-impact .v3-next-impact-list {
    gap: 0;
    border-top: 1px solid var(--v3-app-border);
}

.v3-plan-impact .v3-next-impact-row {
    min-height: 42px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--v3-app-border);
    font-size: var(--v3-type-caption);
    font-weight: 800;
}

.v3-plan-impact .v3-next-impact-row .v3-icon {
    font-size: 19px;
}

.v3-plan-impact .v3-next-impact-row span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

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

    .v3-squad-status-block {
        grid-template-rows: 30px auto;
        padding-left: 0;
    }
}

@media (max-width: 680px) {

    .v3-plan-day-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-block: 10px;
    }

    .v3-plan-day-main {
        padding-right: 0;
    }

    .v3-plan-day-facts {
        border-top: 1px solid var(--v3-app-border);
        border-left: 0;
        padding: 8px 0 0;
    }

    .v3-plan-next-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 0;
    }

    .v3-plan-next-action {
        justify-self: start;
    }

    .v3-plan-next-content span {
        white-space: normal;
    }
}

@media (min-width: 1261px) and (max-height: 760px) {
    .v3-readiness-layout {
        gap: 6px;
        padding: 0 18px 6px;
    }

    .v3-readiness-insights {
        gap: 12px;
        padding-top: 8px;
    }

    .v3-signal-block,
    .v3-squad-status-block {
        grid-template-rows: 24px minmax(0, 1fr);
    }

    .v3-signal-row,
    .v3-squad-status-row {
        min-height: 31px;
    }

    .v3-plan-live {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-rows: 90px 40px minmax(0, 1fr);
        align-content: stretch;
        padding: 0 18px 6px;
    }

    .v3-plan-day-grid {
        min-height: 0;
        height: 90px;
    }

    .v3-plan-next-row {
        min-height: 0;
        height: 40px;
        grid-template-columns: max-content minmax(0, 1fr) max-content;
        gap: 10px;
        padding: 2px 0;
    }

    .v3-plan-next-label span {
        white-space: nowrap;
    }

    .v3-plan-impact {
        min-height: 0;
        height: 100%;
        grid-template-rows: 24px minmax(0, 1fr);
        padding-top: 6px;
    }

    .v3-plan-impact .v3-next-impact-list {
        min-height: 0;
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .v3-plan-impact .v3-next-impact-row {
        min-height: 0;
        height: 100%;
        font-size: var(--v3-type-caption);
    }
}

/* Equal dashboard windows with shared operational typography. */
@media (min-width: 1261px) {
    .v3-app-shell {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .v3-app-rail {
        padding-inline: 12px;
    }

    .v3-dashboard-grid {
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .v3-dashboard-panel > .v3-panel-header {
        padding-inline: 20px;
    }

    .v3-dashboard-panel--readiness .v3-panel-title h2,
    .v3-dashboard-panel--next .v3-panel-title h2 {
        font-weight: 700;
        text-wrap: balance;
    }

    .v3-readiness-layout {
        grid-template-rows: 90px minmax(0, 1fr);
        gap: 0;
        padding: 0 20px 6px;
    }

    .v3-score-block {
        align-content: center;
        padding-top: 0;
    }

    .v3-readiness-insights {
        min-height: 0;
        max-height: 230px;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 22px;
        padding-top: 8px;
    }

    .v3-signal-block,
    .v3-squad-status-block {
        min-height: 0;
        grid-template-rows: 24px minmax(0, 1fr);
    }

    .v3-squad-status-block {
        padding-left: 22px;
    }

    .v3-signal-list,
    .v3-squad-status-list {
        min-height: 0;
        grid-template-rows: repeat(4, minmax(0, 1fr));
        gap: 4px;
        border-bottom: 0;
        padding: 4px 0 0;
    }

    .v3-signal-row,
    .v3-squad-status-row {
        min-height: 0;
        height: 100%;
        border-bottom: 0;
    }

    .v3-signal-row {
        grid-template-columns: 27px minmax(0, 1fr) max-content;
        gap: 9px;
    }

    .v3-signal-row .v3-icon {
        font-size: 20px;
    }

    .v3-signal-row strong,
    .v3-squad-status-row span {
        font-family: var(--v3-font-body);
        font-size: var(--v3-type-caption);
        font-weight: 700;
        line-height: 1.2;
    }

    .v3-signal-row span {
        font-family: var(--v3-font-body);
        font-size: var(--v3-type-caption);
        font-weight: 700;
    }

    .v3-squad-status-heading {
        justify-content: flex-start;
        gap: 7px;
    }

    .v3-squad-status-heading .v3-dashboard-section-label {
        white-space: nowrap;
    }

    .v3-squad-status-heading > span {
        font-size: var(--v3-type-caption);
        font-weight: 600;
        line-height: 1.1;
        white-space: nowrap;
    }

    .v3-squad-status-heading > span::before {
        content: "\2022";
        margin-right: 7px;
    }

    .v3-squad-status-row strong {
        font-size: 24px;
        font-weight: 700;
    }

    .v3-squad-status-row span {
        text-wrap: pretty;
    }

    .v3-squad-status-row {
        grid-template-columns: 22px 32px minmax(0, 1fr) 16px;
        gap: 7px;
    }

    .v3-squad-status-row .v3-squad-status-row-chevron {
        color: var(--v3-app-muted);
        font-size: 13px;
        transform: translateX(-1px);
        transition: color var(--v3-transition), transform var(--v3-transition);
    }

    .v3-squad-status-row:hover .v3-squad-status-row-chevron,
    .v3-squad-status-row:focus-visible .v3-squad-status-row-chevron {
        color: var(--v3-app-text);
        transform: translateX(2px);
    }

    .v3-dashboard-panel--readiness .v3-dashboard-section-label,
    .v3-plan-impact > .v3-dashboard-section-label {
        font-family: var(--v3-font-body);
        font-size: var(--v3-type-caption);
        font-weight: 700;
        letter-spacing: 0;
    }

    .v3-plan-live {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-rows: 84px 40px minmax(0, 1fr);
        align-content: stretch;
        padding: 0 20px 6px;
    }

    .v3-plan-day-grid {
        min-height: 0;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .v3-plan-day-main {
        gap: 4px;
        padding-right: 20px;
    }

    .v3-plan-day-main h3 {
        font-size: 24px;
        font-weight: 700;
    }

    .v3-plan-day-main p {
        font-weight: 600;
        text-wrap: pretty;
    }

    .v3-plan-day-facts {
        grid-template-rows: repeat(2, minmax(0, 1fr));
        padding-left: 20px;
    }

    .v3-plan-fact {
        min-height: 0;
        grid-template-columns: 30px minmax(0, 1fr);
        font-size: var(--v3-type-caption);
        font-weight: 600;
    }

    .v3-plan-fact + .v3-plan-fact {
        padding-top: 0;
    }

    .v3-plan-fact .v3-icon {
        font-size: 19px;
    }

    .v3-plan-fact strong {
        font-size: 13px;
        font-weight: 700;
    }

    .v3-plan-fact--outlook.is-good strong,
    .v3-plan-fact--outlook.is-watch strong,
    .v3-plan-fact--outlook.is-concern strong,
    .v3-plan-fact--outlook strong {
        color: var(--v3-app-text);
    }

    .v3-plan-next-row {
        min-height: 0;
        height: auto;
        grid-template-columns: max-content minmax(0, 1fr) max-content;
        gap: 20px;
        padding: 1px 0;
    }

    .v3-plan-next-label {
        font-weight: 600;
        white-space: nowrap;
    }

    .v3-plan-next-content strong {
        font-weight: 700;
    }

    .v3-plan-next-action {
        font-weight: 700;
    }

    .v3-plan-impact {
        min-height: 0;
        max-height: none;
        height: 100%;
        grid-template-rows: auto minmax(0, 1fr);
        align-content: center;
        gap: 8px;
        padding-top: 0;
    }

    .v3-plan-impact .v3-next-impact-list {
        min-height: 0;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        align-content: center;
        gap: 5px;
        border-bottom: 1px solid var(--v3-app-border);
        padding-block: 4px;
    }

    .v3-plan-impact .v3-next-impact-row {
        min-height: 0;
        height: 100%;
        border-bottom: 0;
        font-family: var(--v3-font-body);
        font-size: var(--v3-type-caption);
        font-weight: 700;
    }
}

@media (min-width: 1261px) and (min-height: 720px) {
    .v3-app-main {
        --v3-coach-workspace-offset: 76px;
        padding: 10px 12px 12px;
    }

    .v3-dashboard-header {
        min-height: 48px;
        margin-bottom: 6px;
    }

    .v3-dashboard-heading {
        gap: 0;
    }

    .v3-dashboard-heading h1 {
        font-size: 30px;
        line-height: 1.05;
    }

    .v3-dashboard-heading-meta {
        line-height: 1.25;
    }

    .v3-profile-pill {
        min-width: 176px;
        min-height: var(--v3-control-compact);
        grid-template-columns: 30px minmax(0, 1fr) 14px;
        gap: 7px;
        padding: 2px 8px;
    }

    .v3-profile-pill .v3-coach-avatar {
        width: 30px;
        height: 30px;
        font-size: var(--v3-type-caption);
    }

    .v3-profile-pill strong {
        font-size: 13px;
    }
}

@media (min-width: 1261px) and (max-height: 719px) {
    .v3-dashboard-grid {
        grid-template-rows: repeat(2, 305px);
    }
}

@media (min-width: 921px) and (max-width: 1260px) {
    body {
        overflow: hidden;
    }

    .v3-app-shell {
        min-height: 0;
        height: var(--v3-viewport-height);
        grid-template-columns: 220px minmax(0, 1fr);
        overflow: hidden;
    }

    .v3-app-rail {
        min-height: 0;
        height: var(--v3-viewport-height);
        gap: 14px;
        padding-block: 20px 14px;
        padding-inline: 12px;
        overflow: hidden;
    }

    .v3-app-main {
        min-height: 0;
        height: var(--v3-viewport-height);
        padding: 14px 12px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .v3-dashboard-header {
        min-height: 48px;
        margin-bottom: 6px;
    }

    .v3-dashboard-heading h1 {
        font-size: 30px;
    }

    .v3-coach-account-anchor {
        top: 14px;
        right: 12px;
    }

    .v3-app-main--dashboard {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .v3-app-main--dashboard .v3-dashboard {
        min-height: 0;
        height: auto;
        grid-template-rows: auto;
        align-content: start;
        gap: 0;
    }

    .v3-app-main--dashboard .v3-dashboard-grid {
        --v3-dashboard-tablet-panel-height: max(
            410px,
            calc((var(--v3-viewport-height) - 82px) / 2)
        );
        min-height: 0;
        height: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "readiness"
            "next"
            "overview"
            "actions";
        grid-template-rows: repeat(4, var(--v3-dashboard-tablet-panel-height));
        gap: 8px;
    }

    .v3-app-main--dashboard .v3-dashboard-panel {
        min-height: 0;
        height: var(--v3-dashboard-tablet-panel-height);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* Readiness Context replaces the planning card with a calm causal timeline. */
.v3-dashboard-panel--next .v3-panel-title > .v3-icon:first-child {
    color: var(--v3-signal-blue);
}

.v3-readiness-context-accent {
    position: absolute;
    z-index: 2;
    top: -1px;
    left: 50%;
    width: 72px;
    height: 2px;
    color: var(--v3-score-good);
    background: currentColor;
    opacity: 0.85;
    pointer-events: none;
    transform: translateX(-50%);
}

.v3-dashboard-panel > .v3-panel-header {
    min-height: 46px;
    background: transparent;
    padding: 10px 18px 8px;
}

.v3-dashboard-panel .v3-panel-title h2 {
    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
}

.v3-dashboard-panel--next .v3-panel-title {
    gap: 9px;
}

.v3-readiness-context {
    min-height: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: minmax(142px, 1fr) 134px;
    padding: 0 18px 8px;
}

.v3-context-journey {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.16fr) minmax(0, 0.92fr);
    align-items: stretch;
    gap: clamp(8px, 1vw, 20px);
    padding: 10px 1.5% 14px;
}

.v3-context-day {
    min-width: 0;
    position: relative;
    display: grid;
    grid-template-rows: 14px 40px minmax(18px, auto) minmax(18px, auto);
    align-content: center;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.v3-context-day-label {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.15;
    font-weight: 600;
}

.v3-context-day--today {
    --v3-context-today-tone: var(--v3-neutral-grey);
    gap: 6px;
    padding-inline: clamp(4px, 1vw, 16px);
}

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

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

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

.v3-context-day--today > :not(.v3-readiness-context-accent) {
    position: relative;
    top: 5px;
}

.v3-context-day--yesterday::before,
.v3-context-day--tomorrow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 72px;
    height: 1px;
    background: var(--v3-neutral-grey);
    opacity: 0.45;
    pointer-events: none;
    transform: translateX(-50%);
}

.v3-context-day--today .v3-context-day-label {
    color: var(--v3-context-today-tone);
    font-size: var(--v3-type-label);
    font-weight: 700;
}

.v3-context-day-icon {
    align-self: center;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in oklch, var(--v3-signal-blue) 40%, var(--v3-app-border));
    border-radius: 50%;
    color: var(--v3-signal-blue);
    background: color-mix(in oklch, var(--v3-signal-blue) 7%, transparent);
    font-size: 20px;
    line-height: 1;
}

.v3-context-day--today .v3-context-day-icon {
    border-color: var(--v3-context-today-tone);
    color: var(--v3-context-today-tone);
    background: transparent;
}

.v3-context-day--yesterday .v3-context-day-label,
.v3-context-day--yesterday .v3-context-day-icon,
.v3-context-day--yesterday .v3-context-day-session,
.v3-context-day--tomorrow .v3-context-day-label,
.v3-context-day--tomorrow .v3-context-day-icon,
.v3-context-day--tomorrow .v3-context-day-session {
    color: var(--v3-app-muted);
}

.v3-context-day-title,
.v3-context-day-session {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.v3-context-day-title {
    align-self: center;
    color: var(--v3-app-text);
    font-family: var(--v3-font-display);
    font-size: 14px;
    line-height: 1.15;
    font-weight: 700;
}

.v3-context-day--today .v3-context-day-title {
    color: var(--v3-app-text);
    font-size: 18px;
    font-weight: 800;
}

.v3-context-day-session {
    align-self: start;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.2;
    font-weight: 500;
}

.v3-context-summary {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 12px;
    border-top: 1px solid var(--v3-app-border);
    padding-top: 7px;
}

.v3-recent-load,
.v3-today-readiness {
    min-width: 0;
    min-height: 0;
    position: relative;
}

.v3-today-readiness {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--v3-app-border);
    padding-left: 12px;
}

.v3-context-summary-heading {
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v3-context-summary-heading > .v3-icon {
    color: var(--v3-signal-blue);
    font-size: 15px;
}

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

.v3-context-info-button {
    width: 20px;
    height: 20px;
    margin-left: 1px;
}

.v3-context-info-button .v3-icon {
    font-size: 13px;
}

.v3-load-chart {
    height: calc(100% - 20px);
    min-height: 80px;
    display: grid;
    grid-template-columns: repeat(7, minmax(24px, 1fr));
    align-items: stretch;
    gap: 5px;
    margin: 0;
    padding: 3px 0 0;
    list-style: none;
}

.v3-load-day {
    --v3-load-tone: var(--v3-app-muted);
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(42px, 1fr) 16px 18px;
    justify-items: center;
    gap: 2px;
}

.v3-load-today-marker {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: var(--v3-radius-pill);
    background: transparent;
    pointer-events: none;
}

.v3-load-day.is-today .v3-load-today-marker {
    background: var(--v3-score-good);
}

.v3-load-bar-track {
    width: min(100%, 28px);
    min-height: 42px;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    padding-top: 8px;
    border-bottom: 1px solid var(--v3-app-border);
}

.v3-load-bar {
    position: relative;
    width: 100%;
    height: var(--v3-load-level);
    min-height: 3px;
    border: 1px solid var(--v3-load-tone);
    border-bottom: 0;
    border-radius: 6px 6px 1px 1px;
    background: var(--v3-load-tone);
}

.v3-load-day.is-rest,
.v3-load-day.is-low {
    --v3-load-tone: var(--v3-score-good);
}

.v3-load-day.is-moderate {
    --v3-load-tone: var(--v3-score-below);
}

.v3-load-day.is-high {
    --v3-load-tone: var(--v3-score-critical);
}

.v3-load-weekday,
.v3-load-day strong {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.v3-load-weekday {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 600;
}

.v3-load-day strong {
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.v3-load-day.is-today .v3-load-weekday,
.v3-load-day.is-today strong {
    color: var(--v3-score-good);
}

.v3-readiness-insight-list {
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
    flex: 1 1 auto;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v3-insight-list-view,
.v3-insight-detail {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.v3-insight-list-view {
    display: flex;
    flex-direction: column;
}

.v3-insight-list-view[hidden],
.v3-insight-detail[hidden] {
    display: none;
}

.v3-readiness-insight-list li {
    min-width: 0;
    display: flex;
    margin: 0;
    padding: 0;
}

.v3-readiness-insight-trigger {
    width: 100%;
    min-height: var(--v3-control-compact);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    border: 0;
    border-bottom: 1px solid var(--v3-app-border);
    border-radius: 0;
    padding: 3px 2px;
    color: var(--v3-app-text);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.v3-readiness-insight-list li:last-child .v3-readiness-insight-trigger {
    border-bottom: 0;
}

.v3-readiness-insight-copy {
    min-width: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.012em;
    overflow-wrap: anywhere;
}

.v3-readiness-insight-chevron {
    color: var(--v3-app-muted);
    font-size: 12px;
    line-height: 1;
    text-align: right;
}

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

.v3-readiness-insight-trigger:focus-visible {
    outline: 2px solid var(--v3-accent-border);
    outline-offset: 2px;
    border-radius: 6px;
}

.v3-insight-detail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v3-insight-back {
    align-self: flex-start;
}

.v3-insight-back > .v3-icon {
    font-size: 12px;
}

.v3-insight-detail-copy {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1px 2px 5px;
}

.v3-insight-detail-copy h4 {
    margin: 0 0 5px;
    color: var(--v3-app-text);
    font-size: var(--v3-type-label);
    line-height: 1.25;
    font-weight: 800;
    text-wrap: pretty;
}

.v3-insight-detail-copy p {
    margin: 0;
    color: var(--v3-app-muted);
    font-size: var(--v3-type-caption);
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

@media (min-width: 1261px) {
    .v3-readiness-layout {
        grid-template-rows: 80px minmax(0, 1fr);
    }

    .v3-readiness-insights {
        grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
        gap: 18px;
        padding-top: 10px;
    }

    .v3-squad-status-block {
        padding-left: 18px;
    }

    .v3-readiness-context {
        padding-inline: 18px;
    }
}

@media (min-width: 1261px) and (max-height: 800px) {
    .v3-readiness-context {
        grid-template-rows: minmax(118px, 1fr) 134px;
        padding-inline: 18px;
        padding-bottom: 4px;
    }

    .v3-context-journey {
        padding: 1px 0 5px;
    }

    .v3-context-day {
        grid-template-rows: 14px 40px minmax(18px, auto) minmax(18px, auto);
        gap: 2px;
    }

    .v3-context-day--today {
        gap: 6px;
    }

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

    .v3-context-day-title {
        font-size: 14px;
    }

    .v3-context-day-session {
        font-size: var(--v3-type-caption);
    }

    .v3-context-summary {
        padding-top: 5px;
    }

    .v3-load-chart {
        min-height: 76px;
    }

    .v3-load-day {
        grid-template-rows: minmax(38px, 1fr) 11px 13px;
    }

    .v3-load-bar-track {
        min-height: 38px;
    }

    .v3-readiness-insight-list li {
        padding-block: 1px;
    }

    .v3-readiness-insight-copy {
        font-size: var(--v3-type-caption);
    }
}

@media (max-width: 680px) {
    .v3-readiness-context {
        grid-template-rows: auto auto;
        padding-inline: 18px;
    }

    .v3-context-journey {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-block: 10px 18px;
    }

    .v3-context-day {
        grid-template-rows: auto;
        gap: 6px;
        border-top: 1px solid var(--v3-app-border);
        padding-top: 14px;
    }

    .v3-context-day--today {
        padding: 14px 12px;
    }

    .v3-context-day--yesterday::before,
    .v3-context-day--tomorrow::before {
        display: none;
    }

    .v3-context-day:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .v3-context-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .v3-load-chart {
        height: 145px;
    }

    .v3-today-readiness {
        border-top: 1px solid var(--v3-app-border);
        border-left: 0;
        padding: 16px 0 0;
    }

    .v3-readiness-insight-list {
        gap: 4px;
        margin-top: 8px;
    }

    .v3-readiness-insight-list li {
        padding: 0;
    }

    .v3-readiness-insight-trigger {
        min-height: var(--v3-control-phone);
        padding-block: 6px;
    }

    .v3-readiness-insight-copy {
        font-size: var(--v3-type-label);
    }

}

/* The public demo keeps identity visible without exposing management controls. */
.v3-profile-pill.v3-profile-pill--static {
    grid-template-columns: 36px minmax(0, 1fr);
    cursor: default;
    pointer-events: none;
}

.v3-team-switcher.v3-team-switcher--static {
    grid-template-columns: 34px minmax(0, 1fr);
    cursor: default;
    pointer-events: none;
}

.v3-profile-pill.v3-profile-pill--static:hover,
.v3-team-switcher.v3-team-switcher--static:hover {
    border-color: transparent;
    box-shadow: var(--v3-shadow-border);
    transform: none;
}

@media (min-width: 1500px) {
    .v3-dashboard-header--demo {
        grid-template-columns: minmax(340px, 1fr) minmax(480px, 680px) minmax(340px, 1fr);
    }
}

@media (min-width: 1261px) and (max-width: 1499px) {
    .v3-dashboard-header--demo .v3-dashboard-heading-meta {
        display: none;
    }
}

@media (min-width: 921px) and (max-width: 1260px) {
    .v3-dashboard-header--demo {
        grid-template-columns: minmax(0, 1fr) 210px;
    }

    .v3-dashboard-header--demo .v3-dashboard-heading {
        grid-column: 1;
    }

    .v3-dashboard-header--demo .v3-demo-callout {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 920px) {
    .v3-dashboard-header--demo {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .v3-dashboard-header--demo .v3-demo-callout {
        grid-column: 1;
        width: 100%;
    }

    .v3-profile-pill.v3-profile-pill--static {
        grid-template-columns: 1fr;
    }

    .v3-team-switcher.v3-team-switcher--static {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .v3-app-nav.v3-app-nav--demo {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .v3-team-switcher.v3-team-switcher--static {
        display: none;
    }
}

@media (max-width: 480px) {
    .v3-demo-callout {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
        padding: 9px;
    }

    .v3-demo-callout__copy > strong {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .v3-demo-callout .v3-coach-button {
        width: 100%;
    }
}

/* Keep the desktop roster scrollport inside the height allocated by its panel. */
@media (min-width: 1261px) and (min-height: 720px) {
    .v3-dashboard-panel--overview .v3-squad-tables {
        min-height: 0;
        height: auto;
        flex: 1 1 auto;
    }
}

/* Give the first dashboard row a stable reading height on taller desktops. */
@media (min-width: 1261px) and (min-height: 850px) {
    .v3-dashboard-grid {
        grid-template-rows: clamp(370px, 42%, 420px) minmax(0, 1fr);
    }
}

/* Squad Readiness gauge: validate here before reusing the pattern elsewhere. */
.v3-score-block--tone-good {
    --v3-score-status-color: var(--v3-score-good);
}

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

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

.v3-score-block--tone-neutral {
    --v3-score-status-color: var(--v3-neutral-grey);
}

.v3-dashboard-panel--readiness .v3-dashboard-section-label {
    color: var(--v3-app-text);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

.v3-dashboard-panel--readiness .v3-signal-row strong,
.v3-dashboard-panel--readiness .v3-squad-status-row span {
    color: var(--v3-app-muted);
}

.v3-dashboard-panel--readiness .v3-signal-row > .v3-icon,
.v3-dashboard-panel--readiness .v3-squad-status-row > .v3-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

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

.v3-dashboard-panel--readiness .v3-signal-list,
.v3-dashboard-panel--readiness .v3-squad-status-list {
    border-top: 0;
    margin-bottom: 8px;
    padding-top: 0;
}

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

.v3-dashboard-panel--readiness .v3-squad-status-heading {
    align-items: baseline;
}

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

@media (min-width: 1261px) {
    .v3-dashboard-panel--readiness .v3-readiness-layout {
        grid-template-rows: 183px minmax(0, 1fr);
    }
}

@media (min-width: 1261px) and (max-height: 800px) {
    .v3-dashboard-panel--readiness .v3-readiness-layout {
        grid-template-rows: 183px minmax(0, 1fr);
    }

}
