/* team.css and the shared literal inner.php shell own the profile structure.
   Additions for the two statuses and history stay inside the team page. */

/* `inner.php` sets bg-page-top1.jpg inline for site_team.php.  Its byte-local
   FastAPI copy is supplied by the route, so no generic shell overlay remains. */

/* Profile identity and lifetime statistics each own half of the page. */
.legacy-team-profile .rating-place-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;min-height:0;margin:0}
.legacy-team-profile .rating-place-column{min-width:0;width:auto;max-width:none;padding:0;margin:0}
.legacy-team-profile .rating-place-item__number,.legacy-team-profile .rating-place-item__title{max-width:100%;overflow-wrap:anywhere}
.legacy-team-profile .rating-place-item__image{height:auto;aspect-ratio:414 / 172}
.legacy-team-profile .rating-place-item__image img{display:block;width:100%;height:100%;object-fit:cover}
.legacy-team-profile .legacy-team-photo-empty{display:grid;width:100%;height:100%;min-height:130px;place-items:center;padding:16px;background:#29283c;color:#fff;font:26px/1.2 'Code-Pro-Black-LC',Arial,sans-serif}
.legacy-team-profile [hidden],.legacy-team-profile .rating-place-item__image [hidden]{display:none}
@media(max-width:767px){.legacy-team-profile .rating-place-row{grid-template-columns:minmax(0,1fr);gap:28px}}

/* Lifetime statuses share the profile without overlapping the source stats.
 * Every name stays visible when a decorative image cannot be loaded. */
.legacy-team-profile .rating-place-column.last{display:flex;flex-direction:column;gap:22px;min-width:0}.legacy-team-statuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.legacy-team-status{min-width:0;text-align:center;color:#fff}.legacy-team-status h2{margin:0 0 12px;font:700 12px/1.4 'MyriadPro',Arial,sans-serif;text-transform:uppercase;color:#ceccd9;overflow-wrap:anywhere}.legacy-team-status__images{display:flex;align-items:center;justify-content:center;gap:6px;min-height:60px;margin-bottom:8px}.legacy-team-status__images img{display:block;max-width:48%;object-fit:contain}.legacy-team-status__images img[hidden]{display:none}.legacy-team-status__head{height:54px}.legacy-team-status__progress{height:34px}.legacy-team-status__scope{margin:-8px 0 8px;color:#ceccd9;font:12px/1.4 'MyriadPro',Arial,sans-serif}.legacy-team-status__name{margin:0;font:700 16px/1.35 'MyriadPro',Arial,sans-serif;text-transform:uppercase;overflow-wrap:anywhere}.legacy-team-profile .rating-place-column.last .legacy-team-summary{position:static;right:auto;bottom:auto;align-self:flex-end;margin-top:auto;max-width:100%;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;white-space:normal;transform:none}.legacy-team-profile .legacy-team-summary .team-wrapper{display:block;min-width:0;margin:0;padding:10px 7px;overflow-wrap:anywhere;transform:none}.legacy-team-profile .legacy-team-summary .team-wrapper>div{transform:none}@media(max-width:479px){.legacy-team-statuses{grid-template-columns:minmax(0,1fr);gap:24px}}

/* History controls and confirmed status charts share the source yellow accent. */
.legacy-team-history{--history-ink:#302f43;--history-muted:#6b677b;--history-accent:#fcea1c;--history-line:#e6e3eb;color:var(--history-ink)}
.legacy-team-history .rating-body,.legacy-team-history__page{min-width:0}
.legacy-public #legacy-main #team-history-title,.legacy-public #legacy-main #team-history-table-title,.legacy-public #legacy-main #team-history-graphs-title{scroll-margin-top:max(135px,calc(var(--public-live-header-height,113px) + 16px))}
.legacy-team-history__heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.legacy-team-history__heading h2{margin:0 0 8px;color:var(--history-ink);font:32px/1 'Code-Pro-Black-LC',Arial,sans-serif;text-transform:uppercase}
.legacy-team-history__heading p{margin:0;color:var(--history-muted);font-size:15px}
.legacy-team-history__filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.legacy-team-history__filter{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border:1px solid #dcd8e4;border-radius:22px;color:var(--history-muted);background:#fff;font-size:14px;font-weight:700;text-decoration:none}
.legacy-team-history__filter[aria-current='page']{border-color:#e3d217;background:var(--history-accent);color:var(--history-ink)}
.legacy-team-history__filter:hover{border-color:var(--history-ink);color:var(--history-ink)}
.legacy-team-history__filter--wins::before,.legacy-team-history__filter--promotions::before{content:'';width:7px;height:7px;border-radius:50%;background:#c62e0b}
.legacy-team-history__filter--promotions::before{background:#563c90}
.legacy-team-history__filter:focus-visible,:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) select:focus-visible,:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) input:focus-visible,:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) button:focus-visible,:is(.legacy-team-history__controls,.legacy-team-history__chart-controls)>a:focus-visible,.legacy-team-history__pagination-actions>a:focus-visible,.legacy-team-history__pagination-actions>button:focus-visible{outline:3px solid #563c90;outline-offset:3px}

/* Large invisible hit areas keep chart points usable. Narrow screens scroll
 * inside the chart instead of shrinking thirty targets into a few pixels. */
.legacy-team-history__chart{min-width:0;margin:0 0 24px;padding:22px 24px 16px;border:1px solid #e8e2cd;border-top:3px solid #eddb1b;border-radius:4px;background:#fcfaf2}
.legacy-team-history__chart-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}
.legacy-team-history__chart-heading h4{margin:0 0 7px;font:21px/1.1 'Code-Pro-Black-LC',Arial,sans-serif;text-transform:uppercase}
.legacy-team-history__chart-heading p{margin:0;color:var(--history-muted);font-size:13px;line-height:1.4}
.legacy-team-history__chart-scroll{display:flex;align-items:flex-start;max-width:100%;margin-top:14px;overflow-x:auto;padding-bottom:6px;scrollbar-color:#563c90 #e0dacb;scrollbar-width:auto;scrollbar-gutter:stable}
.legacy-team-history__chart-scroll::-webkit-scrollbar{height:14px}
.legacy-team-history__chart-scroll::-webkit-scrollbar-track{border-radius:8px;background:#e0dacb}
.legacy-team-history__chart-scroll::-webkit-scrollbar-thumb{border:3px solid #e0dacb;border-radius:8px;background:#563c90}
.legacy-team-history__scroll-position{display:block;box-sizing:border-box;width:100%;height:44px;margin:0;padding:0;appearance:none;background:transparent;cursor:ew-resize}
.legacy-team-history__scroll-position::-webkit-slider-runnable-track{height:12px;border-radius:8px;background:#e0dacb}
.legacy-team-history__scroll-position::-webkit-slider-thumb{width:52px;height:24px;margin-top:-6px;border:3px solid #fcfaf2;border-radius:12px;appearance:none;background:#563c90}
.legacy-team-history__scroll-position::-moz-range-track{height:12px;border-radius:8px;background:#e0dacb}
.legacy-team-history__scroll-position::-moz-range-thumb{width:46px;height:18px;border:3px solid #fcfaf2;border-radius:12px;background:#563c90}
.legacy-team-history__scroll-position:focus-visible{outline:3px solid #563c90;outline-offset:2px}
.legacy-team-history__scroll-hint{margin:8px 0 12px;color:#51446f;font-size:13px;line-height:1.4}
.legacy-team-history__scroll-hint span{font-size:20px;font-weight:700}
.legacy-team-history__period-note{color:var(--history-muted);font-size:14px;line-height:1.4}
.legacy-team-history__chart-scroll:focus-visible{outline:3px solid #563c90;outline-offset:3px}
.legacy-team-history__chart-svg{display:block;width:100%;min-width:960px;overflow:visible}
.legacy-team-history__chart-axis{position:sticky;left:0;z-index:2;display:block;flex:0 0 70px;width:70px;height:auto;overflow:visible;pointer-events:none}
.legacy-team-history__chart-axis-background{fill:#fcfaf2}
.legacy-team-history__chart-axis-mark{stroke:#b7b0a2;stroke-width:1}
.legacy-team-history__chart-svg{flex:0 0 auto;margin-left:-70px}
.legacy-team-history__chart--single .legacy-team-history__chart-svg{min-width:640px;min-height:150px}
.legacy-team-history__chart-grid{stroke:#e7e1d4;stroke-width:1}
.legacy-team-history__chart-tick{fill:#6b677b;font:14px Arial,sans-serif;text-anchor:end}
.legacy-team-history__chart-line{stroke:#51446f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.legacy-team-history__chart-hit{fill:transparent}
.legacy-team-history__chart-point{cursor:pointer;outline:none}
.legacy-team-history__chart-focus{fill:var(--history-accent);stroke:#563c90;stroke-width:2;opacity:0}
.legacy-team-history__chart-point:hover .legacy-team-history__chart-focus,.legacy-team-history__chart-point:focus-visible .legacy-team-history__chart-focus{opacity:1}
.legacy-team-history__chart-icon{pointer-events:none}
.legacy-team-history__chart-place{fill:var(--history-accent);stroke:var(--history-ink);stroke-width:1.5;pointer-events:none}
.legacy-team-history__chart-place--unknown{fill:#fff;stroke-dasharray:3 3}
.legacy-team-history__chart-place-label{fill:var(--history-ink);font:700 12px Arial,sans-serif;text-anchor:middle;dominant-baseline:central;pointer-events:none}
.legacy-team-history__chart-dates{display:flex;justify-content:space-between;gap:16px;padding-left:7%;margin-top:2px;color:var(--history-muted);font-size:12px}
.legacy-team-history__chart-detail{min-height:20px;margin:15px 0 0;color:#51446f;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.legacy-team-history__chart-empty{margin:22px 0 10px;color:var(--history-muted);font-size:15px}

:is(.legacy-team-history__controls,.legacy-team-history__chart-controls){display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0 0 28px;padding:18px;background:#f4f2f6;border-radius:4px}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) label{display:grid;min-width:0;gap:6px;color:var(--history-ink);font-size:12px;font-weight:700}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) .legacy-team-history__game-filter{flex:1 1 220px}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) select,:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) input,:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) button{box-sizing:border-box;width:100%;min-height:44px;max-width:100%;padding:9px 12px;border:1px solid #ccc7d5;border-radius:3px;background:#fff;color:var(--history-ink);font:14px 'MyriadPro',Arial,sans-serif}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) select{text-overflow:ellipsis}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) button{width:auto;padding-right:22px;padding-left:22px;border-color:#e3d217;border-radius:22px;background:var(--history-accent);font-weight:700;cursor:pointer}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) button:hover{background:#fff05a}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls)>a{display:inline-flex;align-items:center;min-height:44px;padding:8px 5px;color:#4b486b;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.legacy-team-history__empty{padding:24px;background:#f4f2f6;color:var(--history-ink)}

.legacy-team-history__achievements{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.legacy-team-history__achievement{display:inline-flex;align-items:center;padding:4px 7px;border:1px solid #dddaea;border-radius:3px;background:#f3f0f8;color:#51446f;font-size:11px;font-weight:700;line-height:1.3;text-transform:none}
.legacy-team-history__achievement--record{border-color:#e6d878;background:#fff7cc;color:#635114}
.legacy-team-history__achievement--streak{border-color:#edc9bf;background:#fff1ec;color:#a12e12}

/* Production table: source place emblems, sorting arrows, venue and milestones
 * below the game name, and quiet cumulative points. */
.legacy-team-history__table-hint{margin:0 0 12px;color:var(--history-muted);font-size:13px}
.legacy-team-history__table-wrap{max-width:100%;overflow:visible;border:1px solid var(--history-line);border-radius:4px;background:#fff;scrollbar-color:#8e899c #f4f2f6}
.legacy-team-history__table-wrap:focus-visible{outline:3px solid #563c90;outline-offset:4px}
.legacy-team-history__table{width:100%;table-layout:fixed;border-collapse:collapse;color:var(--history-ink);text-align:left;font-size:14px;line-height:1.35}
.legacy-team-history__table th{padding:15px 12px;background:#302f43;color:#e0dee9;font-size:12px;font-weight:700;white-space:nowrap}
.legacy-team-history__table th a{display:inline-flex;align-items:center;gap:8px;padding:5px 0;color:inherit;text-decoration:none}
.legacy-team-history__sort-arrow{color:#b2aec2;font-size:16px}
.legacy-team-history__table th[aria-sort] a,.legacy-team-history__table th[aria-sort] .legacy-team-history__sort-arrow{color:var(--history-accent)}
.legacy-team-history__table th a:hover{color:var(--history-accent)}
.legacy-team-history__table th a:focus-visible,.legacy-team-history__table td a:focus-visible{outline:3px solid var(--history-accent);outline-offset:4px}
.legacy-team-history__table td{padding:14px 12px;border-bottom:1px solid var(--history-line);vertical-align:middle;background:#fff;white-space:normal}
.legacy-team-history__result:nth-child(even) td{background:#faf9fc}
.legacy-team-history__result:hover td,.legacy-team-history__result:focus-within td{background:#fffbea}
.legacy-team-history__result:last-child td{border-bottom:0}
.legacy-team-history__date{border-left:3px solid transparent}
.place1 .legacy-team-history__date{border-left-color:#e43a10}
.place2 .legacy-team-history__date{border-left-color:#8bcc18}
.place3 .legacy-team-history__date{border-left-color:#563c90}
.legacy-team-history__date>span{display:block;font-weight:700}
.legacy-team-history__date small{display:block;margin-top:5px;color:var(--history-muted);font-size:12px}
.legacy-team-history__game{min-width:0;overflow-wrap:anywhere}
.legacy-team-history__game a{color:inherit;font-weight:700;text-decoration:underline;text-decoration-color:#c7c3d2;text-underline-offset:3px;overflow-wrap:anywhere}
.legacy-team-history__game a:hover{color:#c62e0b}
.legacy-team-history__venue{display:block;margin-top:5px;color:var(--history-muted);font-size:12px}
.legacy-team-history__place{text-align:center;white-space:nowrap}
.legacy-team-history__place-badge{box-sizing:border-box;display:inline-block;width:62px;min-height:56px;padding:13px 10px 0 0;background:url('/static/legacy-source/images/rating/place.png') top left / contain no-repeat;color:#5a526f;text-align:right;font-size:10px;font-weight:700;text-transform:uppercase}
.legacy-team-history__place-badge>span{display:block;font-family:'Code-Pro-Black-LC',Arial,sans-serif;font-size:35px;line-height:29px;white-space:nowrap}
.place1 .legacy-team-history__place-badge{color:#c62e0b;background-image:url('/static/legacy-source/images/rating/place-1.png')}
.place2 .legacy-team-history__place-badge{color:#527b0c;background-image:url('/static/legacy-source/images/rating/place-2.png')}
.place3 .legacy-team-history__place-badge{color:#563c90;background-image:url('/static/legacy-source/images/rating/place-3.png')}
.legacy-team-history__column--points,.legacy-team-history__column--total,.legacy-team-history__points,.legacy-team-history__total{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.legacy-team-history__points{font-size:22px;font-weight:700}
.legacy-team-history__total{color:var(--history-muted)}
.legacy-team-history__status{min-width:0}
.legacy-team-history__promotion{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e5dda5;border-radius:3px;background:#fff9d8;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.legacy-team-history__promotion img{flex:0 0 auto;width:32px;height:36px;object-fit:contain}
.legacy-team-history__promotion img[hidden]{display:none}
.legacy-team-history__no-change{color:var(--history-muted)}

.legacy-team-history__pagination{margin-top:24px;text-align:center}
.legacy-team-history__count{margin:0 0 14px;color:var(--history-muted);font-size:13px}
.legacy-team-history__pagination-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px}
.legacy-team-history__next,.legacy-team-history__retry{display:inline-flex;justify-content:center;align-items:center;min-height:46px;min-width:180px;padding:12px 24px;border:1px solid #302f43;border-radius:24px;background:var(--history-ink);color:#fff;font:700 14px 'MyriadPro',Arial,sans-serif;text-decoration:none;cursor:pointer}
.legacy-team-history__next:hover,.legacy-team-history__retry:hover{border-color:#563c90;background:#51446f;color:#fff}
.legacy-team-history__next[aria-disabled='true'],.legacy-team-history__retry[aria-disabled='true']{opacity:.65;cursor:default}
.legacy-team-history__previous{display:inline-flex;align-items:center;min-height:44px;padding:10px 5px;color:var(--history-ink);font-size:13px;font-weight:700;text-underline-offset:3px}
.legacy-team-history__loading{color:var(--history-muted);font-size:13px}
.legacy-team-history__status-message{min-height:18px;margin:12px 0 0;color:var(--history-muted);font-size:13px;line-height:1.4}
.legacy-team-history__sentinel{height:1px}
.legacy-team-history [hidden]{display:none}

@media(max-width:639px){
  .legacy-team-history__heading{align-items:stretch;flex-direction:column;gap:18px;margin-bottom:18px}
  .legacy-team-history__heading h2{font-size:27px}
  .legacy-team-history__filters{gap:6px;margin-bottom:18px}
  .legacy-team-history__filter{flex:1 1 auto;justify-content:center;padding:10px 12px;font-size:13px}
  .legacy-team-history__chart{margin-bottom:18px;padding:18px 14px 14px}
  .legacy-team-history__chart-heading{flex-wrap:wrap;gap:10px}
  :is(.legacy-team-history__controls,.legacy-team-history__chart-controls){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px}
  :is(.legacy-team-history__controls,.legacy-team-history__chart-controls) .legacy-team-history__game-filter{grid-column:1 / -1}
  :is(.legacy-team-history__controls,.legacy-team-history__chart-controls) select{padding-right:5px;padding-left:8px;font-size:13px}
  :is(.legacy-team-history__controls,.legacy-team-history__chart-controls)>a{justify-self:center}
  .legacy-team-history__table th,.legacy-team-history__table td{padding:12px 10px}
  .legacy-team-history__chart-dates{font-size:11px}
}

/* Standings use the same compact three-column language as the public game
 * page.  The current team is labelled and can be targeted by the explicit
 * #current-team-result fragment, but ordinary filtering never moves focus. */
.legacy-team-game-results{padding:62px 0;background:#f4f2f6;color:#302f43}.legacy-team-game-results h2{margin:0 0 24px;font-size:28px}.legacy-team-game-results__scroll{overflow-x:auto;background:#fff;box-shadow:0 7px 19px rgba(26,25,42,.1)}.legacy-team-game-results table{width:100%;border-collapse:collapse;text-align:left}.legacy-team-game-results th,.legacy-team-game-results td{padding:14px 16px;border-bottom:1px solid #e5e4e9}.legacy-team-game-results th{color:#fff;background:#302f43}.legacy-team-game-results td a{color:#302f43;font-weight:700;text-decoration-thickness:2px;text-underline-offset:3px}.legacy-team-game-results tr.is-current td{background:#fff5aa}.legacy-team-game-results__current{display:inline-block;margin-left:8px;padding:2px 7px;border-radius:10px;background:#fcea1c;color:#302f43;font-size:11px;font-weight:700;white-space:nowrap}@media(max-width:639px){.legacy-team-game-results{padding:42px 0}.legacy-team-game-results h2{font-size:24px}.legacy-team-game-results__scroll{overflow-x:visible}.legacy-team-game-results table{table-layout:fixed}.legacy-team-game-results th,.legacy-team-game-results td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere}.legacy-team-game-results th{font-size:13px;white-space:nowrap}.legacy-team-game-results th:first-child,.legacy-team-game-results td:first-child{width:58px}.legacy-team-game-results th:last-child,.legacy-team-game-results td:last-child{width:60px}.legacy-team-game-results__current{display:table;margin:5px 0 0}}

/* Graph totals share one period; the history form retains its own filters. */
.legacy-team-history__graphs{margin-bottom:32px}
.legacy-team-history__graphs>h3{margin:0 0 16px;color:var(--history-ink);font:25px/1.2 'Code-Pro-Black-LC',Arial,sans-serif;text-transform:uppercase}
.legacy-team-history__chart-controls{margin-bottom:16px}
.legacy-team-history__podium-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.legacy-team-history__podium-counts>div{min-width:0;padding:16px;border:1px solid #e8e2cd;border-top:3px solid #eddb1b;border-radius:4px;background:#fcfaf2}
.legacy-team-history__podium-counts dt{color:var(--history-muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.legacy-team-history__podium-counts dd{margin:8px 0 0;color:var(--history-ink);font:32px/1 'Code-Pro-Black-LC',Arial,sans-serif;overflow-wrap:anywhere}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) input{min-width:0;font-size:16px}
:is(.legacy-team-history__controls,.legacy-team-history__chart-controls) input[type='number']{max-width:150px}
.legacy-team-history__column--date{width:17%}.legacy-team-history__column--game{width:26%}.legacy-team-history__column--place{width:9%}
.legacy-team-history__column--points,.legacy-team-history__column--total,.legacy-team-history__column--status{width:16%}
.legacy-team-history__table th{white-space:normal;overflow-wrap:anywhere}
.legacy-team-history__table th a{max-width:100%}
.legacy-team-history__table td{overflow-wrap:anywhere}
.legacy-team-history__table td.legacy-team-history__points,.legacy-team-history__table td.legacy-team-history__total{white-space:nowrap;overflow-wrap:normal}
.legacy-team-history__column--place a{white-space:nowrap}
.legacy-team-history__promotion span{min-width:0;overflow-wrap:anywhere}
/* At narrow widths the six table cells reflow within each game, keeping its
   date, full title, place and both numeric results visible without scrolling. */
@media(max-width:1000px){
  .legacy-team-history__table,.legacy-team-history__table thead,.legacy-team-history__table tbody{display:block}
  .legacy-team-history__table colgroup{display:none}
  .legacy-team-history__table thead tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .legacy-team-history__table th{display:flex;align-items:center;min-width:0;min-height:44px;width:auto;padding:8px}
  .legacy-team-history__table th a{min-height:44px}
  .legacy-team-history__result{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));border-bottom:1px solid var(--history-line)}
  .legacy-team-history__table .legacy-team-history__result td{display:block;min-width:0;width:auto;padding:12px 10px;border:0}
  .legacy-team-history__date{grid-column:1 / span 8;grid-row:1}
  .legacy-team-history__game{grid-column:1 / span 8;grid-row:2}
  .legacy-team-history__place{grid-column:9 / span 4;grid-row:1 / span 2;align-self:start}
  .legacy-team-history__points{grid-column:1 / span 6;grid-row:3;text-align:left}
  .legacy-team-history__total{grid-column:7 / span 6;grid-row:3;text-align:left}
  .legacy-team-history__status{grid-column:1 / -1;grid-row:4}
  .legacy-team-history__result td[data-history-label]::before{display:block;margin-bottom:7px;color:var(--history-muted);content:attr(data-history-label);font-size:12px;font-weight:400;white-space:normal}
  .legacy-team-history__promotion{max-width:100%;width:fit-content}
}
@media(max-width:639px){
  .legacy-team-history__podium-counts{gap:6px}
  .legacy-team-history__podium-counts>div{padding:12px 10px}
  :is(.legacy-team-history__controls,.legacy-team-history__chart-controls) input[type='number']{max-width:none}
}
