/* Profile history uses the incumbent palette and keeps chart layout stable. */
.player-chart { width:100%; min-width:0; }
.history .unversioned-observations { fill:none; stroke:var(--text-2); stroke-width:1.5; stroke-dasharray:3 5; vector-effect:non-scaling-stroke; }
.history-provenance-key { color:var(--text-2); }
.history-model-key { display:inline-block; margin-right:12px; }
.history-model-key svg { display:inline-block; vertical-align:middle; margin-right:8px; }
#tabBody .related .player { flex-wrap:wrap; }
#tabBody .related .player a { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
#tabBody .panel.player-overview { background:var(--surface); border:1px solid var(--border); padding:20px; }
.verdict-timeline li { grid-template-columns:minmax(110px,160px) minmax(0,1fr); }
.verdict-timeline .when { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.verdict-timeline .original-verdict-record { grid-column:2; }
@media (max-width:600px) {
  .verdict-timeline li { grid-template-columns:minmax(0,1fr); }
  .verdict-timeline .original-verdict-record { grid-column:1; }
}
.player-chart-svg { display:block; width:100%; height:260px; overflow:hidden; touch-action:pan-y; }
.player-chart-svg text { fill:var(--text-2); font-size:12px; }
.player-chart-svg:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.player-chart-axis { stroke:var(--border-strong); }
.player-chart-line,.player-chart-interval { fill:none; stroke:var(--text); stroke-width:2; vector-effect:non-scaling-stroke; }
.player-chart-observation { fill:var(--text); }
.player-chart-reference { stroke:var(--text-3); stroke-width:1.5; stroke-dasharray:4 6; vector-effect:non-scaling-stroke; }
.player-chart-reference.personal { stroke:var(--text); stroke-width:2; stroke-dasharray:1 4; stroke-linecap:round; }
.player-chart-reference.top { stroke:var(--watch); stroke-width:2; stroke-dasharray:10 5; }
.player-chart-reference.ceiling { stroke:var(--watch); stroke-width:2; stroke-dasharray:10 3 2 3; }
.player-chart-crosshair { stroke:var(--text); stroke-width:1; stroke-dasharray:3 3; pointer-events:none; vector-effect:non-scaling-stroke; }
.player-chart-brush { fill:var(--text); fill-opacity:.12; pointer-events:none; }
.player-chart-kills { fill:var(--text-3); }
.player-chart-heads { fill:var(--text); }
.player-chart-deaths { fill:var(--chart-death); }
.player-chart-references,.player-chart-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; margin-block:12px; font-size:12px; color:var(--text-2); }
.player-chart-references span,.player-chart-tools label { display:inline-flex; align-items:center; gap:8px; }
.player-chart-references i { width:28px; height:2px; background:repeating-linear-gradient(90deg,var(--text-3) 0 4px,transparent 4px 10px); }
.player-chart-references i.personal { background:repeating-linear-gradient(90deg,var(--text) 0 2px,transparent 2px 5px); }
.player-chart-references i.top { background:repeating-linear-gradient(90deg,var(--watch) 0 10px,transparent 10px 15px); }
.player-chart-references i.ceiling { background:repeating-linear-gradient(90deg,var(--watch) 0 10px,transparent 10px 13px,var(--watch) 13px 15px,transparent 15px 18px); }
.player-chart-tools label { min-height:44px; cursor:pointer; }
.player-chart-tools input { width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:var(--text); }
.player-chart-tools .btn { min-height:44px; }
.player-chart-help { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.player-chart-tooltip { position:fixed; z-index:1000; width:max-content; max-width:min(340px,calc(100vw - 24px)); padding:10px 12px; border:1px solid var(--border-strong); border-radius:4px; color:var(--text); background:var(--surface); box-shadow:0 3px 12px #0003; font-size:13px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere; pointer-events:none; }
.history-status,.history-loading { display:flex; align-items:center; gap:10px; min-height:28px; }
.history-loading::before { content:""; display:block; flex:none; box-sizing:border-box; width:18px; height:18px; border:2px solid var(--border-strong); border-top-color:var(--text-2); border-radius:50%; animation:history-loading .9s linear infinite; }
@keyframes history-loading { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .history-loading::before { animation:none; } }
.weapon-history-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-block:16px; }
.weapon-history-controls label { display:grid; gap:6px; min-width:0; flex:1 1 130px; color:var(--text-2); }
.weapon-history-controls select, .weapon-history-controls input, .weapon-history-picker select { width:100%; min-width:0; min-height:44px; padding:8px 10px; color:var(--text); background:var(--surface); border:1px solid var(--border-strong); border-radius:4px; font:inherit; font-size:16px; }
.weapon-history-picker { display:grid; gap:6px; max-width:520px; color:var(--text-2); }
.weapon-combobox input { width:100%; min-width:0; min-height:44px; padding:10px 12px; color:var(--text); background:var(--surface); border:1px solid var(--border-strong); border-radius:4px; font:inherit; font-size:16px; }
.weapon-combobox ul { list-style:none; margin:0; padding:4px; max-height:260px; overflow:auto; background:var(--surface); border:1px solid var(--border-strong); border-radius:4px; }
.weapon-combobox [role=option] { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:44px; padding:8px 10px; cursor:pointer; overflow-wrap:anywhere; }
.weapon-combobox [role=option]:hover,.weapon-combobox .is-active { background:var(--surface-2); color:var(--text); }
.weapon-choice-alert { flex-shrink:0; font-size:12px; color:var(--text); }
.weapon-history-periods { margin-block:16px; flex-wrap:wrap; }
.weapon-history-periods button,.activity-period-presets button { min-height:44px; }
.weapon-custom-range { margin-block:12px; }
.weapon-custom-range summary { width:max-content; max-width:100%; min-height:44px; padding-block:10px; cursor:pointer; color:var(--text-2); }
.weapon-history-reserved { min-height:300px; }
.weapon-history-chart { display:block; width:100%; max-width:960px; height:auto; overflow:visible; }
.weapon-history-chart text { fill:var(--text-2); font-size:14px; }
.weapon-chart-axis { stroke:var(--border-strong); }
.weapon-history-line { fill:none; stroke:var(--text); stroke-width:2; }
.weapon-history-point circle { fill:var(--text); }
.weapon-interval { stroke:var(--text); stroke-width:3; }
.weapon-history-point .point-focus { fill:var(--surface); fill-opacity:0; stroke:var(--focus); stroke-opacity:0; pointer-events:all; }
.weapon-history-point:focus { outline:none; }
.weapon-history-point:focus .point-focus { stroke-opacity:1; stroke-width:2; }
.history-point-detail { min-height:3em; max-width:75ch; overflow-wrap:anywhere; }
.history-point-tools,.history-pages { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-block:12px; }
.history-point-tools .btn,.history-pages .btn { min-height:44px; }
.history-pages .history-page-progress { flex-basis:100%; min-height:28px; margin:0; }
.weapon-history-name { font:inherit; font-weight:inherit; text-align:start; color:inherit; background:none; border:0; padding:0; cursor:pointer; overflow-wrap:anywhere; }
.weapon-history-name:hover { text-decoration:underline; text-underline-offset:3px; }
.weapon-name { overflow-wrap:anywhere; }
.weapon-mode { padding-top:12px; border-top:1px solid var(--border); }
.weapon-mode .mode-breakdown th,.weapon-mode .mode-breakdown td { padding-block:6px!important; }
.weapon-mode abbr { position:relative; cursor:help; text-decoration:underline dotted; text-underline-offset:3px; }
.weapon-mode abbr:focus { outline:2px solid var(--focus); outline-offset:3px; }
.weapon-mode abbr:focus::after { content:attr(title); position:absolute; z-index:10; right:0; bottom:calc(100% + 8px); width:210px; padding:8px; border:1px solid var(--border-strong); background:var(--surface); color:var(--text); text-align:left; white-space:normal; font-size:12px; }
.weapon-mode .mode-breakdown th:first-child { width:auto; }
.weapon-mode .mode-breakdown th { overflow-wrap:normal; white-space:nowrap!important; }
.artillery-item + .artillery-item { border-top:1px solid var(--border); margin-top:16px; padding-top:16px; }
.artillery-item h4 { margin:0 0 12px; font-size:14px; }
.artillery-values { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0; }
.artillery-values dt { color:var(--text-2); font-size:12px; }
.artillery-values dd { margin:4px 0 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.rating-context { display:grid; gap:4px; font-size:12px; color:var(--text-2); }
.rating-context select { min-height:44px; max-width:100%; padding:8px 10px; color:var(--text); background:var(--surface); border:1px solid var(--border-strong); border-radius:4px; font:inherit; font-size:16px; }
#tabBody [data-rating-history] .section-title { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; }
[data-rating-history] .section-title > h3 { grid-row:1; grid-column:1; min-width:0; }
[data-rating-history] .section-title > .tools { display:contents; }
[data-rating-history] .tools > .section-link { grid-row:1; grid-column:2; justify-self:end; min-height:44px; }
.rating-history-controls { grid-row:2; grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:12px; min-width:0; }
.rating-history-controls select { min-height:50px; }
.rating-history-controls .seg { margin-left:0; }
[data-rating-history] .profile-history-chart { max-width:none; width:100%; }
[data-rating-history] .seg button { min-height:44px; }
[data-archive-matchups] .section-link,
[data-archive-matchups] [data-archive-board-retry] { min-height:44px; }
.victims time { display:inline-block; white-space:normal; }
[data-weapon-data] { margin-block:12px; }
[data-weapon-data] summary { cursor:pointer; padding-block:12px; }
[data-weapon-data] pre { max-height:440px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text-2); }
@media (min-width:601px) {
  #tabBody table.weapons .weapon-acc, #tabBody table.weapons .weapon-accuracy-heading { display:table-cell; }
  #tabBody table.weapons col.c-accuracy { display:table-column; }
  #tabBody table.weapons .c-rate { width:25%; }
}
@media (max-width:600px) {
  .artillery-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .weapon-history-controls label { flex-basis:calc(50% - 12px); }
  .weapon-history-controls .btn { width:100%; min-height:44px; }
  .weapon-history-reserved { min-height:260px; }
  #tabBody table.weapons .c-rate { width:40%; }
}

@media (max-width:860px) {
  #tabBody table.weapons .cell-rate, #tabBody table.weapons .cell-rate.wide { grid-template-columns:minmax(0,1fr); gap:4px; }
  #tabBody table.weapons .cell-rate .v { text-align:start; }
}

.career-reserved { min-height:300px; }
.heatmap-scroll { overflow-x:auto; margin-block:16px; }
.activity-heatmap-grid { display:grid; grid-template-columns:70px repeat(24,minmax(44px,1fr)); gap:2px; min-width:1172px; align-items:center; }
.heat-hour { text-align:center; color:var(--text-2); }
.heat-cell { min-width:44px; min-height:44px; padding:4px 2px; font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; background:var(--surface-2); color:var(--text); border:1px solid var(--border-strong); }
.activity-period-presets { flex-wrap:wrap; margin-bottom:12px; }
.activity-custom-range summary { width:max-content; max-width:100%; min-height:44px; padding-block:10px; cursor:pointer; color:var(--text-2); }
.player-activity-stack > .live-session-panel:has(> #liveSessionBlock:empty),
.player-activity-stack > #liveSessionTimeline:empty,
.player-activity-stack > #profileSupportXP:empty { display:none; }
.session-overview-strip { display:flex; align-items:flex-start; gap:12px; overflow-x:auto; padding-block:4px 14px; }
.session-card { flex:0 0 220px; min-width:0; max-width:100%; color:var(--text-2); background:var(--surface); border:1px solid var(--border-strong); border-radius:4px; }
.session-card[data-open=true] { flex-basis:min(640px,calc(100vw - 2*var(--gutter) - 24px)); }
.session-card > [data-career-open] { display:grid; gap:4px; width:100%; min-height:112px; padding:12px; text-align:left; color:inherit; background:none; border:0; border-radius:4px; font:inherit; cursor:pointer; }
.session-card > [data-career-open]:hover,.session-card > [data-career-open][aria-expanded=true] { background:var(--surface-2); color:var(--text); }
.session-card .session-body { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; padding:16px 12px; border-top:1px solid var(--border-strong); }
.session-card .session-body[hidden] { display:none; }
.session-card .session-body > * { margin-block:0; min-width:0; }
.session-card .session-body > .btn { justify-self:start; }
.session-card .session-body .btn { min-height:44px; }
.session-card [data-session-weapons] { overflow-x:auto; }
.heat-cell[data-state="unknown"] { background:var(--surface); color:var(--text-2); }
.class-share { display:block; height:4px; margin-block:6px; background:var(--text-2); max-width:100%; }
.career-source { max-height:440px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width:600px) {
  .career-reserved { min-height:260px; }
}

.heat-cell[data-intensity="1"] { background:color-mix(in srgb,var(--text) 5%,var(--surface)); }
.heat-cell[data-intensity="2"] { background:color-mix(in srgb,var(--text) 10%,var(--surface)); }
.heat-cell[data-intensity="3"] { background:color-mix(in srgb,var(--text) 15%,var(--surface)); }
.heat-cell[data-intensity="4"] { background:color-mix(in srgb,var(--text) 20%,var(--surface)); }

.heat-day,.heat-corner { position:sticky; left:0; z-index:1; background:var(--surface); min-height:44px; display:flex; align-items:center; }

#tabBody .profile-history-chart text { font-size:14px; }
#tabBody .profile-history-chart .history-axis-date.is-compact { font-size:12px; }
.history-observation { fill:var(--text); }
[data-performance-comparison] table.data { table-layout:fixed; width:100%; min-width:0; }
#tabBody [data-performance-comparison] th:first-child { width:24%; }
#tabBody [data-performance-comparison] th:nth-child(2) { width:5.5em; }
#tabBody [data-performance-comparison] th, #tabBody [data-performance-comparison] td { white-space:normal; overflow-wrap:normal; }
#tabBody [data-performance-comparison] td:nth-child(2) { white-space:nowrap; }
[data-performance-comparison] .bullet .mark { z-index:3; background:var(--text-2); }
[data-performance-comparison] .bullet .mark.top { background:var(--text); }
[data-performance-comparison] .bullet .you { z-index:4; }

.original-verdict-record { grid-column:3; margin-top:8px; }
.original-verdict-record > summary { cursor:pointer; padding-block:8px; }
@media (max-width:600px) { .original-verdict-record { grid-column:1; } }

.profile-history-chart { max-width:960px; }
@media (max-width:860px) { .profile-history-panels { grid-template-columns:minmax(0,1fr); } }

.history-pages .btn:disabled { opacity:1; color:var(--text-2); border-color:var(--border); background:var(--surface); }

.session-overview { margin-block:20px; }
.session-overview p { max-width:75ch; }

#tabBody [data-archive-matchups] .tile :is(.label,.value,.sub) { white-space:normal; overflow-wrap:anywhere; }

#tabBody [data-archive-opponents] { table-layout:fixed; width:100%; }
#tabBody [data-archive-opponents] th:first-child { width:28%; }
#tabBody [data-archive-opponents] th,#tabBody [data-archive-opponents] td { white-space:normal; overflow-wrap:anywhere; }
@media (max-width:860px) {
  #tabBody [data-archive-opponents] .hide-mobile { display:none; }
  #tabBody [data-archive-opponents] .only-mobile-block { display:block; }
  #tabBody [data-archive-opponents] th:first-child { width:68%; }
}
