.hockey-module-heading{margin:20px 0 8px;color:var(--white);font-family:inherit;font-size:var(--game-module-heading-size,1rem);font-weight:900;line-height:1.1;letter-spacing:0;text-transform:uppercase}
#hockeyTeamStats{--panel:#111213;--bg-soft:#191a1c;--border:#303236;margin:20px 0 24px;color:var(--text);font-family:inherit;font-size:.63rem;line-height:1.4}
#hockeyTeamStats *{box-sizing:border-box}
#hockeyTeamStats,#hockeyTeamStats .ht-table{-webkit-text-size-adjust:100%;text-size-adjust:100%}
#hockeyTeamStats .ht-context{color:var(--muted);font-size:.63rem}
#hockeyTeamStats .ht-context p{margin:4px 0}
#hockeyTeamStats .ht-module{margin:0 0 12px}
#hockeyTeamStats .ht-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
#hockeyTeamStats .ht-history-status{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--muted);font:11px/1.4 Arial,sans-serif}
#hockeyTeamStats .ht-history-status button{min-height:28px;padding:3px 8px;border:1px solid var(--border);border-radius:3px;background:var(--bg-soft);color:var(--text);font:inherit;cursor:pointer}
/* Shared offense/data-table classes supply the baseball module design. */
#hockeyTeamStats .ht-team{min-width:0;padding:7px 9px;background:var(--panel);border:1px solid var(--border);border-radius:4px}
#hockeyTeamStats h3{margin:0 0 4px;color:var(--white);font-family:inherit;font-size:16px;font-size:min(var(--game-module-heading-size,1rem),16px);font-weight:900;line-height:1.1;letter-spacing:0;text-transform:uppercase}
#hockeyTeamStats h3 span{display:block;margin:0 0 2px;color:var(--muted);font-size:8px;font-size:min(.49rem,8px);font-weight:700;letter-spacing:.055em;text-transform:uppercase}
#hockeyTeamStats .ht-team-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap;margin-bottom:5px}
#hockeyTeamStats .ht-team-heading h3{flex:1 1 auto;min-width:0;margin:0;overflow-wrap:anywhere}
#hockeyTeamStats .ht-controls{display:flex;align-items:flex-start;justify-content:flex-end;gap:5px;margin-left:auto;flex:0 0 auto;max-width:100%}
#hockeyTeamStats .ht-control-actions{display:grid;grid-template-columns:1fr;grid-template-rows:36px 18px;justify-items:center;align-items:center;flex:0 0 50px;width:50px;min-width:50px}

/* Match the baseball offense switch without its mirrored/mobile label rules. */
#hockeyTeamStats .ht-timeframe{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:2px;padding:2px;background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius-sm);white-space:nowrap}
#hockeyTeamStats .ht-timeframe button{appearance:none;min-width:32px;min-height:30px;margin:0;padding:4px 9px;border:1px solid transparent;border-color:rgba(160,172,166,.28);border-radius:3px;background:rgba(145,157,151,.10);color:rgba(224,231,227,.82);font:inherit;font-size:11px;font-size:min(.67rem,11px);font-weight:800;line-height:1.5;cursor:pointer;transition:color 150ms ease,background 150ms ease,border-color 150ms ease,box-shadow 150ms ease,filter 150ms ease,transform 150ms ease}
#hockeyTeamStats .ht-timeframe button[aria-pressed="true"]{font-weight:900;filter:brightness(1.20);transform:translateY(-1px);outline:1px solid currentColor;outline-offset:-1px;box-shadow:0 0 10px currentColor}
#hockeyTeamStats .ht-timeframe button:hover,#hockeyTeamStats .ht-timeframe button:focus-visible{filter:brightness(1.16);outline:1px solid currentColor;outline-offset:-1px}
#hockeyTeamStats .ht-timeframe button:focus-visible,#hockeyTeamStats .ht-scope-toggle:focus-visible{outline:1px solid #fff;outline-offset:2px}
#hockeyGoalieTooltip.g-metric-tooltip.is-team-warning{color:#ffe16a!important}
/* The shared engine supplies the same cumulative offense tiers as baseball. */
#hockeyTeamStats .ht-timeframe button.offense-signal-strong-positive{color:#79ffac!important;background-color:rgba(57,255,136,.20)!important;border-color:rgba(57,255,136,.56)!important}
#hockeyTeamStats .ht-timeframe button.offense-signal-positive{color:#b3f5c9!important;background-color:rgba(57,255,136,.09)!important;border-color:rgba(57,255,136,.30)!important}
#hockeyTeamStats .ht-timeframe button.offense-signal-neutral{color:rgba(224,231,227,.82)!important;background-color:rgba(145,157,151,.10)!important;border-color:rgba(160,172,166,.28)!important}
#hockeyTeamStats .ht-timeframe button.offense-signal-negative{color:#ffadb8!important;background-color:rgba(255,97,117,.09)!important;border-color:rgba(255,97,117,.30)!important}
#hockeyTeamStats .ht-timeframe button.offense-signal-strong-negative{color:#ff7185!important;background-color:rgba(255,97,117,.20)!important;border-color:rgba(255,97,117,.58)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-timeframe button.offense-signal-strong-positive{color:#79ffac!important;background-color:rgba(57,255,136,.20)!important;border-color:rgba(57,255,136,.56)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-timeframe button.offense-signal-positive{color:#d8f77d!important;background-color:rgba(185,235,73,.13)!important;border-color:rgba(185,235,73,.38)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-timeframe button.offense-signal-neutral{color:#ffe06e!important;background-color:rgba(255,210,65,.13)!important;border-color:rgba(255,210,65,.38)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-timeframe button.offense-signal-negative{color:#ffad5d!important;background-color:rgba(255,137,48,.14)!important;border-color:rgba(255,137,48,.40)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-timeframe button.offense-signal-strong-negative{color:#ff7185!important;background-color:rgba(255,71,96,.20)!important;border-color:rgba(255,71,96,.56)!important}
#hockeyTeamStats .ht-custom{display:inline-flex;align-items:center;align-self:center;gap:0;height:20px;min-height:20px;margin:0;margin-left:2px;padding:0 3px;background:#000;border:1px solid var(--border);border-color:rgba(150,177,164,.08);border-radius:4px;color:rgba(184,204,194,.32);opacity:.44;transition:opacity 120ms ease,border-color 120ms ease,color 120ms ease}
#hockeyTeamStats .ht-custom input{appearance:textfield;-moz-appearance:textfield;width:20px;min-width:20px;margin:0;padding:0;border:0!important;background:transparent!important;color:inherit;font:inherit;font-size:8px;font-size:min(.48rem,8px);font-weight:720;line-height:1;text-align:right;box-shadow:none;outline:0}
#hockeyTeamStats .ht-custom input::-webkit-inner-spin-button,#hockeyTeamStats .ht-custom input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#hockeyTeamStats .ht-custom:hover,#hockeyTeamStats .ht-custom:focus-within,#hockeyTeamStats .ht-custom.is-active{border-color:rgba(210,225,217,.24);color:rgba(226,237,231,.72);opacity:.92}
#hockeyTeamStats .ht-custom:has(input[aria-invalid="true"]){border-color:#b95d67}
#hockeyTeamStats .ht-scope-toggle{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;min-width:28px;height:30px;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--muted);cursor:pointer;transition:color 150ms ease,background 150ms ease}
#hockeyTeamStats .ht-scope-toggle svg{display:block;width:16px;height:16px}
#hockeyTeamStats .ht-scope-toggle:hover,#hockeyTeamStats .ht-scope-toggle.is-isolated{color:var(--white);background:transparent}
#hockeyTeamStats .ht-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border-radius:3px}
#hockeyTeamStats .ht-table-wrap:focus-visible{outline:2px solid #ccc;outline-offset:3px}
#hockeyTeamStats .ht-table{width:100%;min-width:420px;margin:0;border-collapse:collapse;table-layout:fixed;background:transparent;color:var(--white);font-family:inherit;font-size:10.5px;font-size:min(.63rem,10.5px);line-height:1;font-variant-numeric:tabular-nums}
#hockeyTeamStats .ht-stat-column{width:20%}
#hockeyTeamStats .ht-value-column{width:11%}
#hockeyTeamStats .ht-rank-column{width:5%}
#hockeyTeamStats .ht-table th,#hockeyTeamStats .ht-table td{width:auto;min-width:0;max-width:none;padding:3px 4px;text-align:right;vertical-align:middle;border:0;border-bottom:1px solid var(--border);white-space:nowrap}
#hockeyTeamStats .ht-table th,#hockeyTeamStats .ht-table td:not(.global-tier-highlight){background:transparent}
#hockeyTeamStats .ht-table thead th{color:var(--muted);font-size:8px;font-size:clamp(8px,.5rem,9px);font-weight:700;letter-spacing:.025em;text-transform:uppercase;white-space:normal;overflow-wrap:anywhere}
#hockeyTeamStats .ht-table thead tr:first-child th[colspan]{text-align:center}
#hockeyTeamStats .ht-table small{display:block;color:var(--muted);font-size:8px;font-size:clamp(8px,.49rem,9px);font-weight:400;line-height:1.2;letter-spacing:0;margin-top:2px;text-transform:none}
#hockeyTeamStats .ht-table tbody th,#hockeyTeamStats .ht-table thead th[rowspan]{text-align:left;position:sticky;left:0;z-index:1;background:var(--panel)}
#hockeyTeamStats .ht-table tbody th{color:var(--text);font-family:inherit;font-size:10px;font-size:min(.59rem,10px);font-weight:800;line-height:1;letter-spacing:.08em;text-transform:uppercase;white-space:normal;overflow-wrap:anywhere}
/* MLB offense uses identical numeric type for each value/rank pair. */
#hockeyTeamStats .ht-table tbody td{font-family:var(--bb-font-data,monospace);font-size:10.5px;font-size:min(.63rem,10.5px);font-weight:800;letter-spacing:0;-webkit-text-fill-color:currentColor!important}
#hockeyTeamStats .ht-table .ht-value:not(.global-tier-highlight):not(.ht-missing){color:var(--white)}
#hockeyTeamStats .ht-table .ht-rank:not(.global-tier-highlight):not(.ht-missing),#hockeyTeamStats .ht-table .ht-missing{color:var(--muted)}
/* Each value/rank pair shares a tint; one leading bar identifies the ranked value. */
#hockeyTeamStats .ht-table tbody td.global-tier-highlight{background:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important}
#hockeyTeamStats .ht-table tbody td.ht-value.global-tier-highlight:is(.metric-elite,.metric-good,.metric-average,.metric-poor,.metric-awful){box-shadow:inset 3px 0 0 currentColor!important}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-value{padding-left:5px;padding-right:4px;text-align:right}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-rank{padding-inline:1px;text-align:center;font-size:9px;font-weight:600}
#hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-elite{color:#63ff9b!important;background-color:rgba(57,255,136,.16)!important}
#hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-good{color:#a2f5bf!important;background-color:rgba(57,255,136,.09)!important}
#hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-average{color:var(--text)!important;background-color:rgba(145,157,151,.08)!important}
#hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-poor{color:#ffadb8!important;background-color:rgba(255,97,117,.09)!important}
#hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-awful{color:#ff7184!important;background-color:rgba(255,97,117,.16)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-elite{color:#79ffac!important;background-color:rgba(57,255,136,.16)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-good{color:#d8f77d!important;background-color:rgba(185,235,73,.11)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-average{color:#ffe06e!important;background-color:rgba(255,210,65,.10)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-poor{color:#ffad5d!important;background-color:rgba(255,137,48,.11)!important}
html[data-highlight-neutral="spectrum"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight.metric-awful{color:#ff7185!important;background-color:rgba(255,71,96,.16)!important}
/* Display preferences always win over both rank cells and cumulative buttons. */
html[data-highlight-display-mode="black-white"] #hockeyTeamStats .global-tier-highlight{filter:grayscale(1) saturate(0)!important}
html[data-highlight-display-mode="text-only"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight:is(.metric-elite,.metric-good,.metric-average,.metric-poor,.metric-awful),
html[data-highlight-display-mode="text-only"] #hockeyTeamStats .ht-timeframe button.global-tier-highlight{background-color:transparent!important;background-image:none!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
html[data-highlight-display-mode="off"] #hockeyTeamStats .ht-table tbody td.global-tier-highlight:is(.metric-elite,.metric-good,.metric-average,.metric-poor,.metric-awful){color:rgba(235,243,239,.84)!important;background-color:transparent!important;background-image:none!important;border-color:rgba(255,255,255,.12)!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
html[data-highlight-display-mode="off"] #hockeyTeamStats .ht-timeframe button.global-tier-highlight{color:rgba(235,243,239,.82)!important;background-color:transparent!important;background-image:none!important;border-color:rgba(235,243,239,.22)!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
html[data-highlight-display-mode="off"] #hockeyTeamStats .ht-timeframe button.global-tier-highlight[aria-pressed="true"]{color:#f4f7f5!important;background-color:rgba(244,247,245,.07)!important;border-color:rgba(244,247,245,.46)!important}
#hockeyTeamStats .ht-table tbody tr:last-child>*{border-bottom:0}
#hockeyTeamStats .ht-defense-note{color:var(--muted);font-size:.63rem;margin:0 0 6px}
#hockeyTeamStats .ht-matchup{border-top:1px solid var(--border);margin-top:5px;padding-top:5px;color:var(--muted)}
#hockeyTeamStats .ht-matchup summary{color:var(--text);cursor:pointer;font-size:.57rem;line-height:1.5}
#hockeyTeamStats .ht-matchup summary span{margin-left:6px;color:var(--muted);font-weight:400}
#hockeyTeamStats .ht-matchup p{font-size:.55rem;line-height:1.5;margin:6px 0}
#hockeyTeamStats .ht-history-wrap{overflow:auto;max-height:240px;margin-top:5px;overscroll-behavior:contain}
#hockeyTeamStats .ht-history-table{border-collapse:collapse;width:100%;min-width:390px;font-size:.58rem;font-variant-numeric:tabular-nums}
#hockeyTeamStats .ht-history-table th,#hockeyTeamStats .ht-history-table td{border-bottom:1px solid var(--border);padding:4px;text-align:right;white-space:nowrap}
#hockeyTeamStats .ht-history-table th:first-child{text-align:left}
#hockeyTeamStats .ht-history-table thead th{position:sticky;top:0;background:var(--panel);font-size:.49rem;color:var(--muted);text-transform:uppercase;z-index:1}
#hockeyTeamStats .ht-history-table tbody td{color:var(--text);font-family:var(--bb-font-data,monospace)}
#hockeyTeamStats .ht-method{color:var(--muted);font-size:.63rem;border-top:1px solid var(--border);padding-top:8px}
#hockeyTeamStats .ht-method summary{cursor:pointer;color:var(--text)}
#hockeyTeamStats .ht-method p{max-width:950px;line-height:1.6}
#hockeyTeamStats a{color:var(--text);text-underline-offset:3px}
#hockeyLineupHeading + #hockeyLineups{margin-top:12px}
@media(max-width:1000px){#hockeyTeamStats .ht-pair{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){#hockeyTeamStats .ht-timeframe button{min-width:29px}}
@media(max-width:620px){#hockeyTeamStats .ht-team{padding:7px}}
@media(max-width:440px){#hockeyTeamStats .ht-team-heading{flex-wrap:wrap;row-gap:4px}#hockeyTeamStats .ht-team-heading h3{flex-basis:100%}}

/* Keep every value and its rank adjacent in portrait and half-width landscape cards. */
@media(max-width:620px),(min-width:560px) and (max-width:1080px) and (max-height:600px) and (orientation:landscape){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table{display:block;min-width:0;width:100%}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table colgroup{display:none}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table :is(thead,tbody){display:block}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tr{display:grid;grid-template-columns:48px repeat(5,minmax(0,1fr) 14px)}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead th{min-width:0;padding-inline:2px;position:static;align-content:end;grid-column:auto}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead th:first-child{grid-column:1}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody tr{grid-template-rows:auto;border-bottom:1px solid var(--border)}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody tr:last-child{border-bottom:0}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody :is(th,td){border-bottom:0;grid-row:1;align-content:center;padding-block:5px}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody th{grid-column:1;position:static;font-size:10px;letter-spacing:0;line-height:1.15;padding-inline:0}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-value{padding-left:3px;padding-right:2px;font-size:10px;line-height:1.15}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-rank{padding-inline:1px;font-size:8px;line-height:1.15}
}
/* On the smallest cards, give the pairs the full width while keeping ranks inline. */
@media(max-width:360px),(min-width:560px) and (max-width:700px) and (max-height:600px) and (orientation:landscape){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tr{grid-template-columns:repeat(5,minmax(0,1fr) 14px)}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead th:first-child{display:none}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody th{grid-column:1 / -1;grid-row:1;padding:4px 0 2px}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td{grid-row:2;padding-block:4px}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-value{font-size:9px;padding-right:0}
}
/* Each half-width landscape card keeps team names above its controls. */
@media(min-width:560px) and (max-width:1000px) and (max-height:600px) and (orientation:landscape){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team-heading{flex-wrap:wrap;row-gap:4px}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team-heading h3{flex-basis:100%}
}

@media(max-width:360px){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats{--game-column-header-size:10px}
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead th{padding-inline:0;letter-spacing:0!important}
}

.hockey-game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0}
.hockey-game-toolbar .hockey-context{margin:0}
.hockey-game-toolbar .global-highlight-controls{flex-wrap:wrap;max-width:100%}
@media(max-width:620px){.hockey-game-toolbar .global-highlight-controls{margin-left:0;padding-left:0;justify-content:flex-start}}

#hockeyTeamStats .ht-card-footer{border-top:1px solid var(--border);margin-top:5px;padding-top:5px}
#hockeyTeamStats .ht-card-footer .ht-matchup{min-width:0;border-top:0;margin-top:0;padding-top:0}
#hockeyTeamStats .ht-versus-toggle{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:18px;max-width:100%;margin:0;padding:0 2px;border:1px solid transparent;border-radius:3px;background:transparent;color:var(--muted);font:inherit;font-size:9px;font-size:min(.55rem,9px);line-height:1.4;white-space:nowrap;cursor:pointer;transition:color 120ms ease,border-color 120ms ease,background 120ms ease}
#hockeyTeamStats .ht-versus-toggle:hover,#hockeyTeamStats .ht-versus-toggle[aria-pressed="true"]{color:var(--text);border-color:var(--border);background:rgba(255,255,255,.035)}
#hockeyTeamStats .ht-versus-toggle:focus-visible{outline:1px solid var(--white);outline-offset:2px}
.hockey-research-notes{margin:8px 0;color:var(--muted);font-size:11px;line-height:1.5}
.hockey-research-notes>summary{width:fit-content;color:var(--muted);cursor:pointer}
.hockey-research-notes>summary:focus-visible{outline:1px solid var(--white);outline-offset:3px}
.hockey-research-notes>p{max-width:950px;margin:6px 0}



/* Rank is a separate, labeled column for every sample, including mobile grids. */
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table :is(td.ht-rank,th.ht-rank-heading){border-left:1px solid var(--border);text-align:center}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead :is(.ht-window-heading,.ht-rank-heading){text-align:center}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead .ht-rank-heading{padding-inline:1px;vertical-align:bottom}

/* Keep city and module titles outside the bordered cards; controls stay above the data. */
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-module>.hockey-module-heading{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-card-title{display:flex;align-items:baseline;gap:5px;margin:0 0 4px;font-size:14px;line-height:1.2}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-card-title .ht-card-side{display:inline;flex:0 0 auto;margin:0 0 0 auto;font-size:8px;line-height:1.2;white-space:nowrap}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team-panel{min-width:0;padding:7px 9px;background:var(--panel);border:1px solid var(--border);border-radius:4px}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team-heading{display:block;margin-bottom:4px}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-controls{align-items:center;justify-content:space-between;flex:0 1 auto;min-width:0;margin-left:0;gap:4px}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-timeframe{min-width:0;padding:0;border:0;background:transparent;gap:2px}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-timeframe button{min-width:24px;min-height:28px;padding:3px 5px}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-control-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto;width:auto;min-width:0}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-scope-toggle{flex-basis:24px;width:24px;min-width:24px;height:28px}
body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-versus-toggle{min-height:28px;padding:3px 4px}
@media(max-width:620px){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team-panel{padding:7px}
}
@media(pointer:coarse){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats :is(.ht-timeframe button,.ht-scope-toggle,.ht-versus-toggle){min-height:32px}
}

/* Keep the same metric groups together, including phones using a wide layout viewport. */
@media(max-width:620px),(max-width:1000px) and (pointer:coarse){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-pair {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
/* Each narrow card shows the five samples across, with each league rank below its value. */
@media(max-width:559px),(max-width:620px) and (orientation:portrait){
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats {
    --game-column-header-size:10px;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team {
    display:grid;
    grid-template-rows:subgrid;
    grid-row:span 2;
    row-gap:0;
    align-self:stretch;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-team-panel {
    padding:5px 3px;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats :is(.ht-controls,.ht-timeframe) {
    flex-wrap:wrap;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-timeframe button {
    min-width:22px;
    padding-inline:3px;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tr {
    grid-template-columns:repeat(5,minmax(34px,1fr));
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead .ht-window-heading {
    text-transform:none;
    padding-inline:1px;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table thead :is(th:first-child,.ht-rank-heading) {
    display:none;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody th {
    grid-column:1 / -1;
    grid-row:1;
    padding:4px 1px 2px;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-value {
    grid-row:2;
    padding:3px 1px 1px;
    text-align:center;
    font-size:10px;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table tbody td.ht-rank {
    grid-row:3;
    padding:1px 1px 3px;
    border-left:0;
  }
  body.hockey-game-page:not([data-hockey-view="live"]) #hockeyTeamStats .ht-table td.ht-rank[data-global-rank]::before {
    content:"#";
  }
}

#hockeyTeamStats .ht-source-controls{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 7px}
#hockeyTeamStats .ht-source-controls button{padding:5px 9px;border:1px solid var(--border);border-radius:4px;background:var(--panel);color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
#hockeyTeamStats .ht-source-controls button[aria-pressed="true"]{border-color:currentColor;color:var(--white);font-weight:700}
#hockeyTeamStats .ht-source-note{margin:2px 0 6px;color:var(--muted);font-size:11px}
#hockeyTeamStats .ht-snapshot-table{border-collapse:collapse;width:100%;font:inherit;font-size:12px;font-variant-numeric:tabular-nums}
#hockeyTeamStats .ht-snapshot-table :is(th,td){border-bottom:1px solid var(--border);padding:5px 3px;text-align:right}
#hockeyTeamStats .ht-snapshot-table th:first-child{text-align:left}
#hockeyTeamStats .ht-snapshot-table td small{display:block;color:var(--muted)}
