@font-face {
    font-family: "Play";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/play-cyrillic-400.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Play";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/play-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Play";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/play-cyrillic-700.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Play";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/play-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #687084;
    --line: #dce2ec;
    --accent: #1f7a5a;
    --accent-dark: #166147;
    --warn: #b87516;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Play", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

input,
textarea,
select,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
}

textarea {
    min-height: 82px;
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

button:hover,
.button:hover {
    background: var(--accent-dark);
    color: #fff;
}

button.danger {
    margin-top: 10px;
    background: #b3332d;
}

button.danger:hover {
    background: #8e2823;
}

.button.secondary {
    background: #e8edf3;
    color: var(--text);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
}

.brand {
    color: var(--text);
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font-weight: 500;
}

.page,
.athlete-page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.public-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.public-shell {
    width: min(440px, 100%);
    padding: 20px;
}

.auth-card,
.panel,
.workout-card,
.stat,
.entry-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.auth-card h1,
.hero-row h1,
.athlete-title h1 {
    margin: 0 0 8px;
}

.auth-link {
    margin: 14px 0 0;
}

.generated-link {
    margin-top: 6px;
    font-weight: 700;
}

.register-actions {
    margin-top: 14px;
}

.stack,
.grid-form,
.inline-form,
.result-form,
.exercise-admin {
    display: grid;
    gap: 12px;
}

.grid-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.grid-form .wide,
.exercise-admin .wide {
    grid-column: 1 / -1;
}

.checkbox-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.program-text {
    min-height: 180px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.editor-toolbar button {
    min-width: 38px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    background: #f4f7fb;
    color: var(--text);
}

.editor-toolbar .swatch {
    color: transparent;
    width: 28px;
    min-width: 28px;
    border-radius: 50%;
}

.swatch.red { background: #e9345d; }
.swatch.green { background: #1f9d69; }
.swatch.blue { background: #286bd8; }
.swatch.pink { background: #f35e91; }
.swatch.yellow { background: #f4c23d; }
.swatch.orange { background: #e46a20; }
.swatch.mint { background: #32c79a; }
.swatch.gray { background: #687084; }

.inline-form {
    grid-template-columns: 1fr auto;
}

.inline-form.compact {
    grid-template-columns: minmax(160px, 1fr) auto;
}

.hero-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.panel {
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stat strong {
    display: block;
    font-size: 30px;
}

.stat span,
.muted,
.hero-row p,
.athlete-title p,
.entry-item span {
    color: var(--muted);
}

.entry-list,
.day-list,
.mobile-list {
    display: grid;
    gap: 10px;
}

.mobile-row {
    display: grid;
    grid-template-columns: 54px 78px 1fr;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.mobile-row.is-nearest {
    border-color: #89c8a6;
    background: #eaf7f0;
}

.week-separator {
    margin: 12px 0 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.day-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.day-row a {
    display: grid;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-weight: 700;
}

.exercise-admin {
    grid-template-columns: 1.2fr 1fr 120px auto;
    align-items: end;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.athlete-body {
    background: #f7f5f0;
}

.athlete-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e1d8ca;
    background: rgba(255, 255, 255, 0.94);
}

.athlete-page {
    max-width: 760px;
    padding: 16px;
}

.athlete-title {
    margin-bottom: 14px;
}

.workout-card {
    margin-bottom: 14px;
}

.exercise-card {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.program-copy {
    white-space: normal;
    font-size: 16px;
}

.results-list {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: #f4faf6;
}

.results-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.results-list b {
    text-align: right;
}

.is-me-line {
    color: var(--accent-dark);
}

.result-details {
    margin-top: 12px;
}

.result-details summary {
    width: fit-content;
    cursor: pointer;
    border-radius: 8px;
    background: #e8edf3;
    padding: 8px 10px;
    font-weight: 700;
}

.exercise-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.exercise-head h3 {
    margin: 0;
}

.exercise-head span {
    color: var(--warn);
    font-weight: 800;
}

.result-form {
    margin-top: 12px;
}

.is-me {
    background: #eaf6ef;
    font-weight: 700;
}

.flash {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #bed8ca;
    border-radius: 8px;
    background: #edf8f2;
    color: #174b37;
}

@media (max-width: 760px) {
    .topbar,
    .hero-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mobile-row {
        grid-template-columns: 44px 68px 1fr;
    }

    .day-row {
        grid-template-columns: 1fr;
    }

    .nav {
        width: 100%;
    }

    .grid-form,
    .exercise-admin,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .inline-form,
    .inline-form.compact,
    .horizontal-result-form {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 14px;
    }

    .compact-table table {
        min-width: 440px;
    }
}

/* New athlete day design for /sport/newdesign */
.athlete-body {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    background: #10172f;
    color: #f9fbff;
}

.athlete-body::before,
.athlete-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.athlete-body::before {
    background: url("/assets/app-background.webp") center top / cover no-repeat;
}

.athlete-body::after {
    display: none;
}

.athlete-page {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-width: 760px;
    padding: 28px 22px 34px;
}

.training-hero {
    margin-bottom: 18px;
}

.athlete-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    font-size: 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.back-chevron {
    width: 23px;
    height: 23px;
    border-left: 5px solid #fff;
    border-bottom: 5px solid #fff;
    transform: rotate(45deg);
}

.athlete-chip {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.refresh-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 23px;
    padding: 0;
}

.records-button {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.avatar-dot {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
}

.training-date {
    margin: 0 0 10px;
    color: #6fe19e;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.training-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 43px;
    line-height: 1.05;
    font-weight: 950;
}

.workout-stack {
    display: grid;
    gap: 10px;
}

.workout-card {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f9f9fb;
    color: #202125;
    box-shadow: 0 4px 0 rgba(10, 16, 44, 0.18), 0 16px 28px rgba(5, 8, 20, 0.22);
}

.workout-card-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 56px;
    padding: 10px 16px;
}

.workout-card-orange .workout-card-head {
    background: #ff6819;
}

.workout-card-mint .workout-card-head {
    background: #9bd8b6;
}

.workout-card-yellow .workout-card-head {
    background: #ffe05b;
}

.workout-card-pink .workout-card-head {
    background: #f35e91;
}

.block-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #17191e;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.workout-card h2 {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 950;
}

.comment-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 40px;
    border: 1.8px solid rgba(0, 0, 0, 0.58);
    border-radius: 10px;
    background: transparent;
    padding: 0;
}

.comment-icon svg {
    width: 27px;
    height: 27px;
}

.comment-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comment-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.block-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    align-items: start;
}

.comment-preview {
    max-width: 120px;
    color: rgba(32, 33, 37, 0.62);
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inline-comment-form {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 42px;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.inline-comment-form[hidden] {
    display: none;
}

.inline-comment-form textarea {
    min-height: 42px;
    max-height: 68px;
}

.comment-box.is-editing .comment-preview {
    display: none;
}

.private-comment-line {
    margin: 0 0 10px;
    color: #687084;
    font-size: 14px;
    font-style: italic;
    line-height: 1.35;
}

.private-comment-form {
    grid-template-columns: minmax(0, 1fr) 42px;
    margin: 0 0 12px;
}

.comment-icon::before {
    display: none;
    content: "";
    position: absolute;
    left: 12px;
    top: 11px;
    width: 22px;
    height: 15px;
    border: 2px solid #17191e;
    border-radius: 50%;
}

.comment-icon::after {
    display: none;
    content: "";
    position: absolute;
    left: 18px;
    top: 25px;
    width: 9px;
    height: 9px;
    border-left: 2px solid #17191e;
    border-bottom: 2px solid #17191e;
    transform: rotate(-25deg);
}

.workout-card-body {
    padding: 18px 22px 20px;
}

.program-copy {
    display: grid;
    gap: 8px;
    font-size: 19px;
    line-height: 1.32;
}

.program-line {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    align-items: start;
}

.program-line.plain {
    grid-template-columns: 1fr;
}

.program-line.ordered {
    grid-template-columns: 16px 1fr;
}

.program-line.plain .dot {
    display: none;
}

.program-line.level-2 {
    margin-left: 22px;
    grid-template-columns: 12px 1fr;
    font-size: 17px;
}

.program-line.level-3 {
    margin-left: 44px;
    grid-template-columns: 12px 1fr;
    font-size: 16px;
}

.program-line.ordered.level-2 {
    grid-template-columns: 24px 1fr;
}

.program-line.ordered.level-3 {
    grid-template-columns: 32px 1fr;
}

.dot {
    width: 8px;
    height: 8px;
    margin-top: 11px;
    border-radius: 50%;
    background: #ff6819;
}

.program-line.level-2 .dot,
.program-line.level-3 .dot {
    width: 7px;
    height: 7px;
    background: transparent;
    border: 1.6px solid #333;
}

.program-marker {
    color: #171b2d;
    font-weight: 400;
    text-align: right;
}

.text-red { color: #e3160c; }
.text-green { color: #1f9d69; }
.text-blue { color: #286bd8; }
.text-yellow { color: #b87516; }
.text-pink { color: #f35e91; }
.text-orange { color: #e46a20; }
.text-mint { color: #148b60; }
.text-gray { color: #687084; }

.dot-orange {
    background: #ff6819;
}

.dot-mint {
    background: #19bd78;
}

.dot-yellow {
    background: #ffd41c;
}

.dot-pink {
    background: #f35e91;
}

.program-space {
    height: 8px;
}

.my-result-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 18px;
    border-radius: 9px;
    background: #e3f1e9;
    font-size: 20px;
}

.my-result-strip b {
    color: #f42558;
}

.result-mark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid #202125;
    border-radius: 50%;
    font-weight: 900;
}

.leaderboard {
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid #d8d8dc;
    border-radius: 8px;
    background: #fff;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(92px, auto);
    align-items: center;
    gap: 6px;
    min-height: 41px;
    padding: 8px 14px;
    border-bottom: 1px solid #e2e2e6;
    font-size: 19px;
}

.leaderboard-row:last-child {
    border-bottom: 0;
}

.leaderboard-row.is-me-line {
    background: #f8d7e3;
    color: #f42558;
    font-weight: 900;
}

.leaderboard-row .name,
.leaderboard-row .result-cell {
    min-width: 0;
}

.leaderboard-row .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-row .result-cell {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.leaderboard-row .result-note {
    margin-right: 6px;
    color: #7f8491;
    font-style: italic;
    font-weight: 400;
}

.leaderboard-row .result-value {
    display: inline;
}

.person-mark {
    margin-left: 8px;
    color: #17191e;
    font-size: 17px;
}

.result-details {
    margin-top: 12px;
}

.result-details summary {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    border-radius: 8px;
    background: #f42458;
    color: #fff;
    padding: 14px 18px;
    list-style: none;
    font-size: 21px;
    font-weight: 900;
}

.result-details summary::-webkit-details-marker {
    display: none;
}

.result-form {
    margin-top: 12px;
    color: #202125;
}

.result-form input,
.result-form textarea {
    background: #fff;
}

.result-form button {
    background: #17191e;
}

.status-button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.8px solid rgba(0, 0, 0, 0.58);
    border-radius: 10px;
    background: transparent;
    color: #17191e;
    font-weight: 900;
}

.workout-card.status-done .workout-card-head {
    background: #42c57b;
}

.workout-card.status-skipped .workout-card-head {
    background: #ec7373;
}

.workout-card.is-collapsed .collapsible-body {
    display: none;
}

.horizontal-result-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}

.horizontal-result-form button {
    min-width: 46px;
}

.block-editor-card {
    position: relative;
}

.block-editor-card.is-dragging {
    opacity: 0.6;
}

.drag-handle {
    position: absolute;
    top: 12px;
    right: 14px;
    cursor: grab;
    color: var(--muted);
    font-size: 20px;
    font-weight: 900;
}

.reorder-form {
    margin: -8px 0 18px;
}

.record-grid {
    display: grid;
    gap: 10px;
}

.record-card {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    color: #202125;
    box-shadow: 0 8px 22px rgba(5, 8, 20, 0.18);
}

.record-card span,
.record-day-link {
    color: #687084;
    font-size: 13px;
}

.record-day-link {
    display: block;
    margin: -2px 0 8px 34px;
}

.training-list-hero {
    margin-bottom: 22px;
}

.list-topline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.list-topline h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 950;
}

.athlete-name {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
}

.user-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 3px solid #f42458;
    border-radius: 50%;
    color: #f42458;
}

.calendar-icon {
    justify-self: end;
    color: #ff6819;
    font-size: 42px;
    font-weight: 900;
}

.install-app-button {
    justify-self: end;
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 9px 14px;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.install-app-button[hidden],
.install-ios-hint[hidden] {
    display: none;
}

.install-ios-hint {
    width: fit-content;
    max-width: 100%;
    margin: 14px auto 0;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #171b2d;
    text-align: center;
    font-size: 14px;
}

.list-date {
    margin: 30px 0 0;
    color: #6fe19e;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

.training-list-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    color: #171b2d;
    box-shadow: 0 16px 36px rgba(5, 8, 20, 0.26);
}

.training-week-heading {
    display: flex;
    align-items: center;
    min-height: 64px;
    background: #fff;
}

.training-week-heading:not(:first-child) {
    border-top: 14px solid #edf0f5;
}

.training-week-heading span {
    display: flex;
    align-items: center;
    align-self: stretch;
    min-width: 260px;
    padding: 16px 52px 16px 28px;
    background: var(--week-color);
    color: #171b2d;
    font-size: 28px;
    font-weight: 950;
    text-transform: none;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0 100%);
}

.week-color-0 {
    --week-color: #77d1bd;
}

.week-color-0 span {
    background: var(--week-color);
}

.week-color-1 {
    --week-color: #ffd33d;
}

.week-color-1 span {
    background: var(--week-color);
}

.week-color-2 {
    --week-color: #f35e91;
}

.week-color-2 span {
    background: var(--week-color);
}

.training-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 18px;
    margin: 13px 28px;
    padding: 10px 24px;
    border: 2px solid #ececf0;
    border-radius: 12px;
    color: #171b2d;
}

.training-row.is-upcoming {
    border-color: #f42458;
}

.training-date-cell {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding-right: 20px;
    border-right: 1px solid #e5e5ea;
}

.training-date-cell strong {
    font-size: 26px;
}

.training-date-cell small {
    color: #7b808e;
    font-size: 17px;
}

.training-title-cell {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 24px;
    font-weight: 900;
}

.training-title-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-title-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-title-cell small {
    color: #7b808e;
    font-size: 13px;
    font-weight: 700;
}

.training-title-cell small.personal-label {
    color: #6f7480;
    font-weight: 400;
    font-style: italic;
}

.upcoming-badge {
    border-radius: 8px;
    background: #f42458;
    color: #fff;
    padding: 8px 11px;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.mobile-upcoming-badge {
    display: inline-flex;
    justify-self: start;
    width: fit-content;
    margin-top: 5px;
}

.state-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: 950;
}

.done-mark {
    background: #2bbb7a;
}

.skip-mark {
    background: #dd0f43;
}

.progress-mark {
    background: conic-gradient(#f9c53a var(--progress, 50%), #fff3cc 0);
    color: #162033;
    position: relative;
}

.progress-mark::after {
    content: "";
    width: 42%;
    height: 42%;
    border-radius: 50%;
    background: #fff;
}

.row-chevron {
    color: #737783;
    font-size: 48px;
    line-height: 1;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(8, 12, 28, 0.68);
}

.modal-backdrop[hidden] {
    display: none;
}

.comment-modal {
    position: relative;
    width: min(460px, 100%);
    border-radius: 12px;
    background: #fff;
    color: #202125;
    padding: 20px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.comment-modal h3 {
    margin: 0 42px 12px 0;
    font-size: 24px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #e8edf3;
    color: #202125;
}

.flash {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 520px) {
    .athlete-body::before {
        background-position: center top;
    }

    .athlete-page {
        width: 100%;
        max-width: 100%;
        padding: 24px 14px 28px;
    }

    .athlete-topline {
        gap: 8px;
        min-width: 0;
        font-size: 18px;
        margin-bottom: 22px;
        overflow: hidden;
    }

    .back-link {
        flex: 0 0 auto;
        gap: 9px;
    }

    .back-chevron {
        width: 19px;
        height: 19px;
        border-width: 4px;
    }

    .athlete-chip {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 8px;
    }

    .athlete-chip > span:not(.avatar-dot) {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .records-button {
        flex: 0 0 auto;
        font-size: 14px;
    }

    .refresh-button {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .avatar-dot {
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
    }

    .training-date {
        font-size: 16px;
    }

    .training-hero h1 {
        font-size: 34px;
    }

    .workout-card-head {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 7px;
        min-height: 50px;
        padding: 8px 9px;
    }

    .block-number {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .workout-card h2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 19px;
        line-height: 1.02;
    }

    .block-actions {
        gap: 4px;
    }

    .comment-icon,
    .status-button {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .comment-icon svg {
        width: 22px;
        height: 22px;
    }

    .workout-card-body {
        padding: 14px 16px 16px;
    }

    .program-copy {
        font-size: 17px;
    }

    .program-line.level-2 {
        font-size: 16px;
        margin-left: 20px;
    }

    .program-line.level-3 {
        font-size: 15px;
        margin-left: 38px;
    }

    .leaderboard-row {
        grid-template-columns: auto minmax(0, 1fr) minmax(76px, auto);
        gap: 5px;
        padding: 8px 10px;
        font-size: 17px;
    }

    .list-topline {
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        gap: 10px;
    }

    .install-app-button {
        align-self: center;
        padding: 7px 9px;
        font-size: 13px;
    }

    .list-topline h1 {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 34px;
    }

    .athlete-name {
        justify-self: start;
        font-size: 22px;
    }

    .list-date {
        margin-top: 18px;
        font-size: 20px;
    }

    .training-week-heading span {
        min-width: 190px;
        padding: 12px 42px 12px 22px;
        font-size: 22px;
    }

    .training-row {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        gap: 10px;
        margin: 10px 14px;
        padding: 8px 10px;
    }

    .training-row > .state-mark,
    .training-row > .row-chevron {
        grid-column: auto;
        justify-self: end;
    }

    .training-date-cell {
        padding-right: 10px;
    }

    .training-date-cell strong {
        font-size: 23px;
    }

    .training-date-cell small {
        font-size: 13px;
    }

    .training-title-cell {
        font-size: 18px;
        line-height: 1.12;
        justify-items: start;
        justify-self: stretch;
        white-space: normal;
    }

    .mobile-upcoming-badge {
        padding: 7px 8px;
        font-size: 13px;
    }

    .state-mark {
        width: 30px;
        height: 30px;
    }

    .row-chevron {
        font-size: 34px;
    }
}
