/* Layout only. Visual identity comes from shared site components. */
.team-insights { display:grid; gap:24px; }
.team-insights > .hpj-page-head { margin-bottom:0; }
.team-insights .hpj-page-head h1 { overflow-wrap:anywhere; }
.team-insights .hpj-account-actions { margin-bottom:0; align-items:center; }
.team-insights .hpj-account-actions > a, .team-insights .hpj-account-actions > button { width:auto; }
.team-insights .cb2-section-title { margin:0 0 10px; }
.team-insights .cb2-section-title :is(h2,h3) { margin:0; }
.team-insights svg { flex-shrink:0; }
.team-insights__toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.team-insights__toolbar .cb2-section-title { margin:0; }
.team-insights__schedule { display:grid; gap:24px; list-style:none; padding:0; margin:0; }
.team-insights__schedule > li { min-width:0; }
.team-insights__past .hpj-table-disclosure strong { min-width:0; overflow-wrap:anywhere; }
.team-insights__add-game { display:inline-flex; align-items:center; gap:.5rem; min-height:44px; text-decoration:none; line-height:1.2; }
.team-insights__add-game .hpj-icon-button { flex:none; }
.team-insights__add-game:is(:hover,:focus-visible) > span:last-child { text-decoration:underline; }
.team-insights__game-head { display:flex; align-items:center; gap:16px; }
.team-insights__game-head > div { min-width:0; overflow-wrap:anywhere; }
.team-insights__icon { width:48px; height:48px; flex:0 0 48px; }
.team-insights__start { display:grid; gap:6px; }
.team-insights__deadlines { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; border-top:1px solid var(--bs-border-color); padding-top:20px; margin:0; }
.team-insights__deadlines > div { display:grid; gap:8px; }
.team-insights__deadlines dt { display:flex; align-items:center; gap:8px; font-weight:400; }
.team-insights__response-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:16px; list-style:none; padding:0; margin:0; }
.team-insights__response { padding:16px; display:grid; align-content:start; gap:10px; min-width:0; overflow-wrap:anywhere; }
.team-insights__response-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.team-insights__filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:18px; }
.team-insights__filters label { min-width:0; }
.team-insights__filters button { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.team-insights__overview { display:grid; gap:20px; }
.team-insights__metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; margin:0; }
.team-insights__metrics > div { display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-width:0; }
.team-insights__metrics dt { font-weight:400; order:2; }
.team-insights__metrics dd { margin-top:0; }
.team-insights__rankings { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:24px; align-items:start; }
.team-insights__ranking { display:grid; list-style:none; gap:16px; margin:0; padding:0; }
.team-insights__ranking li { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:12px; }
.team-insights__ranking li + li { border-top:1px solid var(--bs-border-color); padding-top:16px; }
.team-insights__position { width:38px; height:38px; font-size:inherit; }
.team-insights__person { min-width:0; overflow-wrap:anywhere; }
.team-insights__score { display:grid; gap:2px; text-align:right; }
.team-insights__empty { justify-items:center; text-align:center; padding-block:36px; }
.team-insights__empty > div { max-width:620px; }
.team-insights__empty > span > svg { width:30px; height:30px; }
@media(max-width:1100px) {
  .team-insights__metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .team-insights { gap:18px; }
  .team-insights__toolbar { align-items:flex-start; flex-direction:column; gap:12px; }
  .team-insights__filters, .team-insights__deadlines { grid-template-columns:minmax(0,1fr); }
  .team-insights__filters .hpj-account-actions > button { width:100%; }
  .team-insights__metrics { gap:14px; }
  .team-insights__metrics > div { gap:10px; }
  .team-insights__score .small { overflow-wrap:anywhere; }
}
@media(max-width:480px) {
  .team-insights__past > :is(thead,tbody) > tr > :is(th,td) { padding-inline:.2rem; }
  .team-insights__past .hpj-table-disclosure { gap:.25rem; }
  .team-insights__add-game { gap:.25rem; font-size:.875rem; }
  .team-insights__add-game .hpj-icon-button { width:30px; height:30px; }
}
@media(max-width:360px) {
  .team-insights__metrics { grid-template-columns:minmax(0,1fr); }
}

.team-agenda { --team-agenda-gap:22px; }
.team-agenda, .team-agenda .team-insights__schedule, .team-agenda .cb2-result-list,
.team-agenda .team-insights__response-grid, .team-agenda #team-results { gap:var(--team-agenda-gap); }
.team-agenda > .hpj-collapsible-card { margin-block:0; }
.team-agenda__actions { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem .75rem; }
