.tbb-athlete {
    --tbb-ink: #161616;
    --tbb-muted: #686868;
    --tbb-line: #dedede;
    --tbb-soft: #f5f5f3;
    --tbb-paper: #fafaf8;
    --tbb-green: #147a45;
    --results-black: #111;
    --results-off-white: #f8f7f5;
    --results-accent: #c0392b;
    --results-border: #e8e4de;
    --results-muted: #888;
    color: var(--tbb-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.tbb-athlete * { box-sizing: border-box; }
.tbb-carousel { width: min(1440px, calc(100vw - 2rem)); max-width: none; margin: .25rem 0 1.25rem 50%; transform: translateX(-50%); }
.tbb-athlete-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 0 .45rem; color: var(--tbb-muted); font-size: .82rem; }
.tbb-athlete-breadcrumb a { color: var(--tbb-ink); font-weight: 700; text-decoration: none; }
.tbb-athlete-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tbb-athlete-breadcrumb span[aria-current="page"] { overflow: hidden; max-width: min(60vw, 34rem); text-overflow: ellipsis; white-space: nowrap; }
.tbb-carousel__navigation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.tbb-carousel__navigation p { margin: 0; color: var(--tbb-muted); font-size: .82rem; }
.tbb-carousel__buttons { display: flex; gap: .5rem; }
.tbb-carousel__buttons button { display: inline-grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 1px solid var(--tbb-line); border-radius: 50%; background: #fff; color: var(--tbb-ink); cursor: pointer; font-size: 1.25rem; transition: background .15s ease, color .15s ease, opacity .15s ease; }
.tbb-carousel__buttons button:hover:not(:disabled) { background: #111; color: #fff; }
.tbb-carousel__buttons button:disabled { cursor: default; opacity: .3; }
.tbb-athlete-cards { display: flex; align-items: flex-start; gap: 1rem; width: 100%; margin: 0; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; transition: height .2s ease; }
.tbb-athlete-cards::-webkit-scrollbar { display: none; }
.tbb-athlete-cards:focus-visible { outline: 3px solid rgba(20,122,69,.3); outline-offset: 4px; }
.tbb-carousel__dots { display: flex; justify-content: center; gap: .5rem; margin-top: .45rem; }
.tbb-carousel__dots button { width: .62rem; height: .62rem; padding: 0; border: 0; border-radius: 50%; background: #c8c8c8; cursor: pointer; transition: width .15s ease, border-radius .15s ease, background .15s ease; }
.tbb-carousel__dots button.is-active { width: 1.8rem; border-radius: 999px; background: var(--tbb-green); }
.tbb-athlete__message { max-width: 1440px; margin: 1rem auto; padding: 1rem 1.25rem; border-radius: 12px; background: #fff4e5; color: #714b00; }

.tbb-profile-card {
    flex: 0 0 100%;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid var(--tbb-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0,0,0,.16);
}

.tbb-profile-card__header { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: linear-gradient(135deg,#000,#292929); color: #fff; }
.tbb-profile-card__brand { margin: 0 0 .7rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; opacity: .85; text-transform: uppercase; }
.tbb-profile-card__header h1, .tbb-profile-card__header h2 { margin: 0; color: #fff; line-height: 1.08; }
.tbb-profile-card__header h1 { font-size: clamp(1.8rem,5vw,2.6rem); }
.tbb-profile-card__header h2 { font-size: clamp(1.55rem,4vw,2.15rem); }
.tbb-profile-card__subtitle { margin: .35rem 0 0; opacity: .9; }
.tbb-profile-card__pills { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: flex-start; gap: .5rem; }
.tbb-profile-pill { padding: .42rem .78rem; border: 1px solid #5cbe86; border-radius: 999px; background: var(--tbb-green); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tbb-profile-pill--light { border-color: #fff; background: #fff; color: #050505; }
.tbb-profile-pill--record { border-color: #f5c36b; background: #b45309; }
.tbb-profile-card__content { padding: .9rem 1.5rem; }
.tbb-profile-card__footer { display: flex; align-items: center; gap: .55rem; padding: .6rem 1.35rem; border-top: 1px solid var(--tbb-line); background: var(--tbb-paper); color: var(--tbb-muted); font-size: .8rem; }
.tbb-freshness-dot { width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; background: var(--tbb-green); }

.tbb-primary-details { display: grid; gap: .85rem; }
.tbb-detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem 1.2rem; }
.tbb-detail-block { display: grid; gap: .2rem; }
.tbb-detail-block span { color: var(--tbb-muted); font-size: .82rem; }
.tbb-detail-block strong { color: var(--tbb-ink); }
.tbb-history-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.tbb-role-detail { padding-top: .7rem; border-top: 1px solid var(--tbb-line); }
.tbb-role-detail h3, .tbb-performance__section h3 { margin: 0 0 .55rem; color: var(--tbb-muted); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.tbb-timeline { margin: 0; padding: 0; list-style: none; }
.tbb-timeline li { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; }
.tbb-timeline time { color: var(--tbb-muted); white-space: nowrap; }

.tbb-performance { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--tbb-line); }
.tbb-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tbb-section-heading h2 { margin: .18rem 0 0; font-size: 1.35rem; }
.tbb-section-kicker { margin: 0; color: var(--tbb-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tbb-filter { display: inline-flex; flex: 0 0 auto; padding: .22rem; border-radius: 999px; background: var(--tbb-soft); }
.tbb-filter button { padding: .5rem .85rem; border: 0; border-radius: 999px; background: transparent; color: var(--tbb-muted); cursor: pointer; font-weight: 700; }
.tbb-filter button.is-active { background: #000; color: #fff; }
.tbb-performance__section + .tbb-performance__section { margin-top: 1.35rem; }

.tbb-results-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--results-black); }
.tbb-results-heading .tbb-results-tag { flex: 0 0 auto; padding: 3px 10px; background: var(--results-black); color: #fff; font-family: "PT Mono", Consolas, monospace; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.tbb-results-heading h3 { margin: 0; color: var(--results-muted); font-family: "PT Serif", Georgia, serif; font-size: 20px; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; }

.tbb-table-scroll { width: 100%; overflow-x: auto; }
.tbb-history-mobile { display: none; }
.tbb-records-mobile, .tbb-history-swipe-note { display: none; }
.tbb-progress-filter { display: flex; width: max-content; margin: 0 0 .8rem auto; }
@media (max-width: 991.98px) {
    .tbb-performance__section::after, .tbb-history-swipe-note { display: block; margin: .4rem 0; color: var(--tbb-muted); font-size: .75rem; text-align: right; }
    .tbb-records-desktop { display: none; }
    .tbb-records-mobile { display: block; }
    .tbb-mobile-record { padding: .8rem 0; border-bottom: 1px solid var(--results-border); }
    .tbb-mobile-record__row { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: .5rem; margin-bottom: .5rem; font-size: .8rem; overflow-wrap: anywhere; }
    .tbb-mobile-record__row > :last-child { text-align: right; }
    .tbb-mobile-record { font-weight: 700; }
    .tbb-mobile-record__status { display: block; width: 100%; padding: .4rem .6rem; border-radius: 999px; font-size: .8rem; white-space: normal; overflow-wrap: anywhere; text-align: center; }
    .tbb-mobile-record__status.tbb-status--superseded { background: #fff0c2; color: #795600; }
    .tbb-athlete-header-details > span { display: block; }
    .tbb-athlete-header-details > .tbb-athlete-header-separator { display: none; }
}
.tbb-performance__section::after { content: "Swipe table to see all lifts →"; display: none; }
@media (max-width: 560px) {
    .tbb-performance__section::after { display: block; margin-top: .4rem; color: var(--tbb-muted); font-size: .75rem; text-align: right; }
    .tbb-history-desktop { display: none; }
    .tbb-history-mobile { display: block; }
    .tbb-history-swipe-note { display: none; }
    .tbb-mobile-result__scores { justify-content: flex-end; border-top: 1px solid var(--results-border); padding-top: .5rem; }
    .tbb-mobile-result { padding: .8rem 0; border-bottom: 1px solid var(--results-border); }
    .tbb-mobile-result__heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .6rem; align-items: start; }
    .tbb-mobile-result__heading a { color: var(--tbb-ink); font-weight: 700; overflow-wrap: anywhere; }
    .tbb-mobile-result__heading time { font-size: .75rem; white-space: nowrap; }
    .tbb-mobile-result__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .6rem 0; font-size: .8rem; }
    .tbb-mobile-result summary { cursor: pointer; font-size: .8rem; padding: .35rem 0; }
    .tbb-mobile-attempts { width: 100%; margin: .4rem 0; border-collapse: collapse; }
    .tbb-mobile-attempts th, .tbb-mobile-attempts td { padding: .3rem; text-align: center; font-size: .8rem; }
    .tbb-mobile-attempts th:first-child { text-align: left; }
}
.tbb-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbb-table th { padding: .65rem .55rem; border-bottom: 2px solid var(--tbb-line); color: var(--tbb-muted); font-size: .7rem; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tbb-table td { padding: .72rem .55rem; border-bottom: 1px solid var(--tbb-line); vertical-align: middle; white-space: nowrap; }
.tbb-table tbody tr:last-child td { border-bottom: 0; }
.tbb-table a { color: #111; font-weight: 750; text-decoration: underline; text-decoration-color: #aaa; text-underline-offset: 3px; }
.tbb-table a:hover { text-decoration-color: #111; }
.tbb-number { font-size: 1rem; font-weight: 800; }
.tbb-attempt { display: inline-flex; min-width: 1.8rem; justify-content: center; padding: .18rem .28rem; border-radius: .3rem; }
.tbb-attempt--good { background: #e3f5eb; color: #14633a; }
.tbb-attempt--miss { background: #fde8eb; color: #a02e43; text-decoration: line-through; }
.tbb-attempt--empty, .tbb-athlete__empty { color: var(--tbb-muted); }
.tbb-athlete__empty { text-align: center; }

/* Competition tables deliberately mirror the visual language used by TBBResults. */
.tbb-results-table { min-width: 1040px; table-layout: fixed; font-family: Lato, "Segoe UI", Arial, sans-serif; }
.tbb-results-table th { padding: 8px 10px; border-bottom: 1px solid var(--results-border); color: var(--results-muted); font-family: Lato, "Segoe UI", Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .18em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.tbb-results-table th:first-child { width: 25%; padding-left: 0; text-align: left; white-space: normal; }
.tbb-results-table thead tr:last-child th:first-child { padding-left: 10px; text-align: center; }
.tbb-results-table th:nth-child(2) { width: 8%; }
.tbb-performance-results-table th:nth-child(2) { width: 5%; }
.tbb-performance-results-table > thead > tr:first-child > th:last-child { width: 130px; }
.tbb-performance-results-table > tbody > tr > td:last-child { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tbb-performance-results-table > thead > tr:first-child > th:nth-child(2),
.tbb-performance-results-table > tbody > tr > td:nth-child(2),
.tbb-lift-summary-table > thead > tr > th:first-child,
.tbb-lift-summary-table > tbody > tr > td:first-child { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tbb-mobile-result__meta > span { white-space: nowrap; }
.tbb-results-table th.group-label { width: auto; padding: 6px 10px 2px; color: rgba(0,0,0,.3); font-size: 9px; letter-spacing: .2em; text-align: center; }
.tbb-results-table .col-divider { border-right: 1px solid var(--results-border); }
.tbb-results-table tbody tr { border-bottom: 1px solid var(--results-border); transition: background .1s; }
.tbb-results-table tbody tr:last-child { border-bottom: 0; }
.tbb-results-table tbody tr:hover { background: var(--results-off-white); }
.tbb-results-table td { padding: 13px 10px; border-bottom: 0; color: #444; font-family: "PT Mono", Consolas, monospace; font-size: 14px; text-align: center; }
.tbb-results-table td:first-child { padding-left: 0; color: var(--results-black); font-family: Lato, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.tbb-results-table td:first-child a { white-space: normal; overflow-wrap: anywhere; }
.tbb-results-table a { color: var(--results-black); text-decoration-color: #bbb; }
.tbb-results-table .lift-miss { color: var(--results-accent); text-decoration: line-through; opacity: .6; }
.tbb-mobile-attempts .lift-miss { color: var(--results-accent); text-decoration: line-through; opacity: .6; }
.tbb-mobile-attempts .tbb-lift-value--empty { color: var(--results-muted); }
.tbb-results-table .tbb-lift-value--empty { color: var(--results-muted); }
.tbb-results-table .total-cell { color: var(--results-black); font-family: "PT Serif", Georgia, serif; font-size: 16px; font-weight: 700; }
.tbb-history-table { min-width: 1120px; }
.tbb-lift-summary-table { min-width: 760px; table-layout: auto; }
.tbb-lift-summary-table th:first-child { width: 8%; padding-left: 10px; text-align: center; }
.tbb-lift-summary-table th:not(:first-child) { width: 30.666%; }
.tbb-lift-summary-table td { white-space: normal; }
.tbb-lift-summary-table td:first-child { padding-left: 10px; text-align: center; }
.tbb-lift-summary-table td:not(:first-child) { text-align: center; }
.tbb-best-lift { display: inline-grid; width: 300px; max-width: 100%; justify-items: start; gap: .15rem; text-align: left; white-space: normal; }
.tbb-best-lift strong { color: var(--results-black); font-family: "PT Serif", Georgia, serif; font-size: 17px; }
.tbb-best-lift small { color: var(--results-muted); font-family: Lato, "Segoe UI", Arial, sans-serif; font-size: 11px; font-weight: 400; line-height: 1.3; }
.tbb-personal-card .tbb-table-scroll { scrollbar-width: none; }
.tbb-personal-card .tbb-table-scroll::-webkit-scrollbar { display: none; }

.tbb-charts { display: grid; grid-template-columns: minmax(0,1fr); gap: .85rem; }
.tbb-chart { padding: .75rem 1rem; border: 1px solid var(--tbb-line); border-radius: 16px; background: var(--tbb-soft); }
.tbb-chart h3 { margin: 0 0 .75rem; font-size: 1rem; }
.tbb-chart svg { display: block; width: 100%; height: auto; }
.tbb-chart__axis { stroke: #8d8d8d; stroke-width: 1.25; }
.tbb-chart__grid { stroke: #dedede; stroke-width: 1; }
.tbb-chart__grid--minor { stroke: #d4d1ca; stroke-width: .75; stroke-dasharray: 2 4; }
.tbb-chart__grid--micro { stroke: #e3e0da; stroke-width: .6; stroke-dasharray: 1 5; }
.tbb-chart__tick { fill: #686868; font-size: 12px; }
.tbb-chart__axis-title { fill: #454545; font-size: 13px; font-weight: 700; }
.tbb-chart__point { cursor: help; stroke: #fff; stroke-width: 2; }
.tbb-chart__point-value { font-size: 15px; font-weight: 700; paint-order: stroke; stroke: #f5f5f3; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.tbb-chart__legend { display: flex; gap: 1rem; color: var(--tbb-muted); font-size: .75rem; }
.tbb-chart__legend i { display: inline-block; width: .55rem; height: .55rem; margin-right: .3rem; border-radius: 50%; }
.tbb-status { color: var(--tbb-muted); }
.tbb-records-table td:last-child { white-space: normal; min-width: 100px; }
.tbb-records-table .tbb-status { display: inline-block; max-width: 150px; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.tbb-status__prefix { white-space: nowrap; }
@media (max-width: 560px) {
    .tbb-records-table th, .tbb-records-table td { padding: .5rem .3rem; font-size: 12px; }
    .tbb-records-table .tbb-number { font-size: 14px; }
    .tbb-records-table .tbb-status { max-width: 110px; }
}
.tbb-status--current { display: inline-block; padding: .25rem .5rem; border-radius: 999px; background: #e3f5eb; color: #14633a; font-weight: 700; }
.tbb-status--superseded { display: inline-block; padding: .25rem .5rem; border-radius: 999px; background: #fff0c2; color: #795600; font-weight: 700; }

@media (max-width: 991.98px) {
    .tbb-athlete { padding-top: 64px; }
    .tbb-carousel { scroll-margin-top: 64px; }
}

@media (max-width: 800px) {
    .tbb-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .tbb-history-grid { grid-template-columns: 1fr; }
    .tbb-chart { padding: .75rem; }
}

@media (max-width: 560px) {
    .tbb-carousel { width: calc(100vw - 1rem); }
    .tbb-carousel__navigation p { max-width: 60%; }
    .tbb-athlete-cards { gap: .65rem; }
    .tbb-profile-card { border-radius: 18px; }
    .tbb-profile-card__header { padding: .9rem 1rem; }
    .tbb-profile-card__content { padding: .75rem 1rem; }
    .tbb-profile-card__footer { padding: .55rem 1rem; }
    .tbb-profile-card__header, .tbb-section-heading { display: block; }
    .tbb-profile-card__pills { justify-content: flex-start; margin-top: 1rem; }
    .tbb-detail-grid, .tbb-history-grid { grid-template-columns: 1fr; }
    .tbb-filter { display: flex; width: max-content; margin: .9rem 0 0 auto; }
    .tbb-filter button { padding: .48rem .7rem; font-size: .8rem; }
}

@media (max-width: 430px) {
    .tbb-timeline li { align-items: flex-start; flex-direction: column; gap: .12rem; }
    .tbb-timeline time { white-space: normal; }
}
