/* STRIDE styles: navy and light blue brand; status labels and borders distinguish review states.
   Later brand overrides intentionally take precedence over earlier shared rules. */

/* ===== 1. Base typography and page defaults ===== */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #102c50;
  background: #f3f7fd;
  font-size: 16px
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,
input,
select {
  font: inherit
}

button {
  cursor: pointer
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #78b8ea;
  outline-offset: 2px
}

/* ===== 2. Page shell, branding and navigation ===== */
.shell {
  max-width: 1450px;
  margin: auto;
  padding: 24px 32px 60px
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px
}

.pill {
  border: 1px solid #cbdcf0;
  border-radius: 99px;
  padding: 8px 13px;
  font-size: .83rem;
  color: #173b68;
  background: #fff
}

.tabs {
  display: flex;
  gap: 6px;
  background: #e7f2ff;
  padding: 5px;
  border-radius: 12px;
  width: max-content;
  margin-bottom: 25px
}

.tabs button {
  border: 0;
  background: transparent;
  padding: 11px 19px;
  border-radius: 9px;
  color: #173b68;
  font-weight: 700
}

.tabs button.active {
  background: #fff;
  color: #173b68;
  box-shadow: 0 1px 5px #102c5017
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px
}

h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -.035em;
  margin: 0 0 5px
}

h2 {
  font-size: 1.16rem;
  margin: 0 0 15px;
  letter-spacing: -.02em
}

.muted {
  color: #173b68
}

p {
  margin: 0;
  line-height: 1.5
}

.small {
  font-size: .83rem
}

/* ===== 3. Cards, grids and status displays ===== */
.grid {
  display: grid;
  gap: 17px
}

.summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px
}

.card {
  background: white;
  border: 1px solid #cbdcf0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 6px 20px #102c5008
}

.metric-label {
  color: #173b68;
  font-size: .85rem;
  font-weight: 650
}

.big {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 9px 0 4px
}

.amber {
  color: #173b68
}

.rose {
  color: #173b68
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap
}

.status.review {
  background: #e7f2ff;
  color: #102c50
}

.status.clear {
  background: #e7f2ff;
  color: #173b68
}

.status.missing {
  background: #e7f2ff;
  color: #173b68
}

/* ===== 4. Roster tables ===== */
.roster {
  width: 100%;
  border-collapse: collapse
}

.roster th {
  text-align: left;
  color: #173b68;
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .055em;
  padding: 13px 8px;
  border-bottom: 1px solid #e7f2ff
}

.roster td {
  padding: 15px 8px;
  border-bottom: 1px solid #e7f2ff;
  font-size: .89rem
}

.roster tr:last-child td {
  border: 0
}

.roster tr[data-athlete] {
  cursor: pointer
}

.roster tr[data-athlete]:hover {
  background: #f3f7fd
}

.name {
  font-weight: 740;
  color: #102c50
}

.athlete-top {
  display: flex;
  gap: 12px;
  align-items: center
}

.select {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #cbdcf0;
  border-radius: 9px;
  color: #102c50
}

.athlete-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px
}

.value {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 10px 0 4px
}

.detail {
  font-size: .83rem;
  color: #173b68;
  line-height: 1.45;
  margin-top: 12px
}

.line {
  height: 1px;
  background: #e7f2ff;
  margin: 18px 0
}

.lower {
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr)
}

/* ===== 5. SVG chart appearance ===== */
.chart {
  width: 100%;
  height: 220px;
  display: block
}

.chart text {
  font-size: 12px;
  fill: #173b68
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .84rem;
  color: #173b68;
  font-weight: 650
}

.field input {
  width: 100%;
  border: 1px solid #cbdcf0;
  border-radius: 9px;
  padding: 10px 11px;
  color: #102c50;
  background: #fff
}

.form-grid .wide {
  grid-column: 1/-1
}

.primary {
  background: #173b68;
  color: #fff;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 750
}

.primary:hover {
  background: #173b68
}

.secondary {
  background: #fff;
  color: #173b68;
  border: 1px solid #cbdcf0;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 700
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px
}

.feedback {
  font-size: .82rem;
  color: #173b68;
  min-height: 20px
}

.workouts {
  max-height: 260px;
  overflow: auto
}

.workout {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e7f2ff;
  font-size: .84rem
}

.workout:first-child {
  color: #173b68;
  font-weight: 700
}

.legend {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  font-size: .77rem;
  color: #173b68;
  margin-top: 5px
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px
}

.foot {
  font-size: .78rem;
  color: #173b68;
  line-height: 1.5;
  margin-top: 24px
}

.hidden {
  display: none !important
}

/* ===== 6. Responsive layout ===== */
@media(max-width:950px) {

  .summary,
  .athlete-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .lower {
    grid-template-columns: 1fr
  }
}

@media(max-width:620px) {
  .shell {
    padding: 16px 14px 40px
  }

  .top {
    align-items: start
  }

  .top .pill {
    display: none
  }

  .heading {
    align-items: start;
    flex-direction: column
  }

  h1 {
    font-size: 1.7rem
  }

  .summary,
  .athlete-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px
  }

  .card {
    padding: 16px
  }

  .big,
  .value {
    font-size: 1.7rem
  }

  .roster-wrap {
    overflow-x: auto
  }

  .roster {
    min-width: 620px
  }

  .tabs {
    width: 100%
  }

  .tabs button {
    flex: 1
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .form-grid .wide {
    grid-column: auto
  }
}

.summary {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.athlete-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.roster {
  min-width: 750px
}

.roster td {
  white-space: nowrap
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.chart {
  height: auto;
  aspect-ratio: 720/370;
  min-width: 600px
}

.chart-wrap {
  overflow-x: auto;
  margin-top: 10px
}

.chart .chart-label {
  font-size: 14px;
  font-weight: 700;
  fill: #173b68
}

.chart .chart-value {
  font-size: 13px;
  font-weight: 700;
  fill: #173b68
}

.chart .chart-threshold {
  font-size: 12px;
  font-weight: 700;
  fill: #173b68
}

.metric-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer
}

.metric-card:hover {
  border-color: #78b8ea
}

.metric-card.selected {
  border: 2px solid #173b68;
  box-shadow: 0 0 0 3px #e7f2ff
}

.metric-card:focus-visible {
  outline: 3px solid #78b8ea;
  outline-offset: 2px
}

.weekly-question {
  margin: 12px 0
}

.weekly-question legend {
  font-size: .95rem;
  line-height: 1.4
}

.weekly-question .check {
  margin-bottom: 0
}

h3 {
  font-size: 1rem;
  margin: 0 0 8px
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 18px 8px 0;
  font-size: .9rem
}

fieldset {
  border: 1px solid #cbdcf0;
  border-radius: 10px;
  padding: 14px
}

legend {
  font-weight: 700
}

.stack {
  display: grid;
  gap: 17px
}

.form-grid .field.wide {
  grid-column: 1/-1
}

.select {
  width: 100%
}

.workouts {
  max-height: 330px
}

.workout {
  grid-template-columns: 1fr 1fr 1fr 1fr
}

.question-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px
}

.question-fields .wide {
  grid-column: auto
}

.question-fields fieldset {
  grid-column: 1/-1
}

.subtle {
  border-top: 1px solid #e7f2ff;
  padding-top: 15px;
  margin-top: 15px
}

.compact-text {
  font-size: .84rem;
  line-height: 1.5;
  color: #173b68
}

#scorePreview {
  margin: 16px 0
}

.card p+p {
  margin-top: 9px
}

@media(max-width:950px) {
  .summary {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:620px) {

  .athlete-grid,
  .summary {
    grid-template-columns: 1fr 1fr
  }

  .question-fields {
    grid-template-columns: 1fr
  }

  .roster {
    min-width: 750px
  }

  .athlete-grid .card {
    grid-column: 1/-1
  }
}

.summary {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.athlete-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.roster {
  min-width: 750px
}

.roster td {
  white-space: nowrap
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.chart {
  height: auto;
  aspect-ratio: 720/370;
  min-width: 600px
}

.chart-wrap {
  overflow-x: auto;
  margin-top: 10px
}

.chart .chart-label {
  font-size: 14px;
  font-weight: 700;
  fill: #173b68
}

.chart .chart-value {
  font-size: 13px;
  font-weight: 700;
  fill: #173b68
}

.chart .chart-threshold {
  font-size: 12px;
  font-weight: 700;
  fill: #173b68
}

.metric-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer
}

.metric-card:hover {
  border-color: #78b8ea
}

.metric-card.selected {
  border: 2px solid #173b68;
  box-shadow: 0 0 0 3px #e7f2ff
}

.metric-card:focus-visible {
  outline: 3px solid #78b8ea;
  outline-offset: 2px
}

.weekly-question {
  margin: 12px 0
}

.weekly-question legend {
  font-size: .95rem;
  line-height: 1.4
}

.weekly-question .check {
  margin-bottom: 0
}

h3 {
  font-size: 1rem;
  margin: 0 0 8px
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 18px 8px 0;
  font-size: .9rem
}

fieldset {
  border: 1px solid #cbdcf0;
  border-radius: 10px;
  padding: 14px
}

legend {
  font-weight: 700
}

.stack {
  display: grid;
  gap: 17px
}

.form-grid .field.wide {
  grid-column: 1/-1
}

.select {
  width: 100%
}

.workouts {
  max-height: 330px
}

.workout {
  grid-template-columns: 1fr 1fr 1fr 1fr
}

.question-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px
}

.question-fields .wide {
  grid-column: auto
}

.question-fields fieldset {
  grid-column: 1/-1
}

.subtle {
  border-top: 1px solid #e7f2ff;
  padding-top: 15px;
  margin-top: 15px
}

.compact-text {
  font-size: .84rem;
  line-height: 1.5;
  color: #173b68
}

#scorePreview {
  margin: 16px 0
}

.card p+p {
  margin-top: 9px
}

@media(max-width:950px) {
  .summary {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:620px) {

  .athlete-grid,
  .summary {
    grid-template-columns: 1fr 1fr
  }

  .question-fields {
    grid-template-columns: 1fr
  }

  .roster {
    min-width: 750px
  }

  .athlete-grid .card {
    grid-column: 1/-1
  }
}

#assessmentDialog {
  width: min(900px, calc(100vw - 24px));
  max-height: min(90vh, 980px);
  border: 1px solid #cbdcf0;
  border-radius: 16px;
  padding: 20px;
  background: #f3f7fd;
  color: #102c50;
  box-shadow: 0 24px 90px #102c5055;
  overflow: auto
}

#assessmentDialog::backdrop {
  background: #102c50a8
}

.dialog-header {
  position: sticky;
  top: -20px;
  z-index: 2;
  background: #f3f7fd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #cbdcf0
}

.dialog-header h2 {
  margin: 0
}

#assessmentDialog #fullAssessment {
  margin-top: 15px
}

.primary:disabled {
  opacity: .48;
  cursor: not-allowed
}

.leaf-profile {
  font-size: .82rem;
  color: #173b68;
  line-height: 1.45;
  margin-top: 11px;
  border-top: 1px solid #e7f2ff;
  padding-top: 10px
}

.workouts {
  max-height: 440px;
  overflow: auto
}

.workout {
  grid-template-columns: 1.15fr .8fr .8fr .85fr .75fr;
  align-items: center
}

.workout input {
  width: 70px;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #cbdcf0;
  border-radius: 7px
}

.workout .simulated-mark {
  font-size: .7rem;
  color: #173b68;
  display: block
}

@media(max-width:620px) {
  .workouts {
    overflow: auto
  }

  .workout {
    min-width: 550px
  }
}

#changeDialog {
  width: min(490px, calc(100vw - 28px));
  border: 1px solid #78b8ea;
  border-radius: 18px;
  padding: 28px;
  background: #fff;
  color: #102c50;
  box-shadow: 0 25px 85px #102c5055
}

#changeDialog::backdrop {
  background: #102c50a8
}

#changeDialog h2 {
  font-size: 1.45rem;
  margin: 10px 0
}

#changeDialog p {
  line-height: 1.55;
  color: #102c50
}

.change-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e7f2ff;
  color: #102c50;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  line-height: 40px
}

.change-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px
}

@media(max-width:620px) {
  .change-actions button {
    width: 100%
  }
}

.factor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 13px
}

.factor-table th {
  text-align: left;
  color: #173b68;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 8px 0;
  border-bottom: 1px solid #cbdcf0
}

.factor-table th:last-child,
.factor-table td:last-child {
  text-align: right
}

.factor-table td {
  vertical-align: middle;
  border-bottom: 1px solid #e7f2ff;
  padding: 10px 0;
  font-size: .88rem
}

.factor-table tr:last-child td {
  border-bottom: 0
}

.factor-table .factor-name {
  font-weight: 700;
  color: #102c50
}

.factor-table .factor-detail {
  display: block;
  font-size: .76rem;
  color: #173b68;
  margin-top: 3px
}

.factor-table select {
  display: block;
  width: min(180px, 100%);
  margin-top: 5px;
  padding: 5px 8px;
  border: 1px solid #cbdcf0;
  border-radius: 7px;
  background: #fff;
  color: #102c50;
  font-size: .8rem
}

.risk-pill {
  display: inline-block;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .77rem;
  font-weight: 800
}

.risk-pill.high {
  background: #e7f2ff;
  color: #173b68
}

.risk-pill.elevated {
  background: #e7f2ff;
  color: #102c50
}

.risk-pill.low {
  background: #e7f2ff;
  color: #173b68
}

.risk-pill.unknown {
  background: #e7f2ff;
  color: #173b68
}

@media(max-width:620px) {

  .factor-table td {
    font-size: .8rem
  }

  .risk-pill {
    font-size: .71rem
  }
}

.team-chart-section {
  margin: 18px 0
}

.team-factor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 20px
}

.team-factor {
  background: #f3f7fd;
  border: 1px solid #cbdcf0;
  border-radius: 12px;
  padding: 13px;
  text-align: left;
  color: #102c50
}

.team-factor.selected {
  border: 2px solid #173b68;
  background: #e7f2ff
}

.team-factor span,
.team-factor small {
  display: block
}

.team-factor strong {
  display: block;
  font-size: 1.7rem;
  margin: 5px 0
}

.team-factor small {
  font-size: .78rem;
  color: #173b68
}

.team-chart-section h3 {
  font-size: 1rem;
  margin: 12px 0 6px
}

.team-detail[hidden] {
  display: none
}

.team-detail {
  margin-top: 18px
}

.team-detail>.panel-heading {
  margin-bottom: 12px
}

.detail-actions {
  display: flex;
  gap: 8px
}

.team-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px
}

.team-detail-metrics .card {
  font-weight: 700
}

.team-detail-metrics strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 6px
}

.team-detail-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px
}

.team-detail-charts .card:last-child {
  grid-column: 1/-1
}

.team-detail-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px
}

.team-detail-bottom ul {
  padding-left: 20px;
  line-height: 1.5
}

.team-detail-bottom .workouts {
  max-height: 260px
}

.roster tr[data-id] {
  cursor: pointer
}

.roster tr[data-id]:hover,
.roster tr[data-id]:focus {
  background: #e7f2ff
}

.chart {
  aspect-ratio: 720/390
}

@media(max-width:800px) {

  .team-detail-charts,
  .team-detail-bottom {
    grid-template-columns: 1fr
  }

  .team-detail-charts .card:last-child {
    grid-column: auto
  }
}

@media(max-width:620px) {

  .team-factor-cards,
  .team-detail-metrics {
    grid-template-columns: 1fr
  }

  .team-detail .panel-heading {
    display: block
  }

  .detail-actions {
    margin-top: 12px;
    flex-wrap: wrap
  }
}

.team-interpretation {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #cbdcf0;
  border-radius: 12px;
  background: #f3f7fd;
  padding: 14px;
  margin: 12px 0
}

.team-interpretation strong {
  display: block;
  color: #102c50
}

.team-interpretation p {
  font-size: .88rem;
  color: #173b68;
  line-height: 1.45;
  margin-top: 4px
}

.team-interpretation .risk-pill {
  flex: none
}

.team-factor small {
  line-height: 1.4
}

.summary .big {
  color: #102c50 !important
}

.chart {
  height: auto;
  aspect-ratio: auto;
  max-width: 680px;
  min-width: 0
}

.team-chart-section {
  padding: 17px 20px
}

.team-factor-cards {
  margin: 10px 0 12px
}

.team-factor {
  padding: 9px 12px
}

.team-factor strong {
  font-size: 1.35rem;
  margin: 2px 0
}

.team-chart-body {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(230px, 1fr);
  gap: 16px;
  align-items: center
}

.team-interpretation {
  margin: 0
}

.team-chart-section h3 {
  margin: 0 0 5px
}

.team-chart-section .chart-wrap {
  margin-top: 2px
}

.team-detail-charts .chart {
  max-width: 600px
}

.team-risk-card .factor-table td {
  padding: 8px
}

@media(max-width:950px) {
  .team-chart-body {
    grid-template-columns: 1fr
  }

  .team-interpretation {
    margin-top: 6px
  }
}

@media(max-width:620px) {
  .chart {
    min-width: 540px
  }

  .team-chart-section {
    padding: 16px
  }
}

body.saving main,
body.saving dialog {
  pointer-events: none;
  opacity: .7
}

body.saving {
  cursor: progress
}

/* ===== 7. Profile setup and guided CSV import ===== */
.setup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-bottom: 1px solid #cbdcf0
}

.setup-row strong {
  flex: 1;
  min-width: 140px
}

.import-steps {
  display: grid;
  gap: 12px
}

.import-steps select {
  font-size: 17px;
  padding: 12px;
  border: 2px solid #173b68;
  width: 100%;
  max-width: 420px
}

.unit-help {
  background: #e7f2ff;
  padding: 14px;
  border-radius: 8px;
  line-height: 1.6
}

.danger {
  color: #173b68 !important
}

#setupView>.card {
  margin-bottom: 20px
}

.tabs {
  flex-wrap: wrap
}

#saveStatus {
  display: block
}

body.saving #setupView {
  pointer-events: none
}

/* STRIDE navy, light blue and white brand */
.top {
  background: #fff;
  border: 1px solid #cbdcf0;
  border-top: 5px solid #102c50;
  border-radius: 18px;
  padding: 18px 24px
}

.tabs {
  background: #e7f2ff
}

.tabs button.active {
  background: #102c50;
  color: white
}

.primary {
  background: #173b68;
  color: white;
  border-color: #173b68
}

.primary:hover {
  background: #102c50
}

.secondary {
  background: #fff;
  color: #173b68;
  border: 1px solid #cbdcf0
}

.card.selected {
  border-color: #78b8ea
}

.unit-help {
  background: #e7f2ff
}

.import-steps select {
  border-color: #78b8ea
}

.pill {
  color: #173b68;
  background: #f3f7fd
}

@media(max-width:700px) {
  .top {
    padding: 16px;
    align-items: flex-start
  }

  .top>.pill {
    font-size: .68rem;
    padding: 6px 8px
  }

  .tabs {
    width: 100%
  }

  .tabs button {
    flex: 1;
    padding: 10px;
    font-size: .85rem
  }
}

/* ===== Compact banner, collapsible entry and accessible action feedback ===== */
[hidden] { display: none !important; }
.top { justify-content: flex-start; padding: 12px 20px; }
.stride-banner { display: block; width: min(880px, 100%); height: auto; }
.activity-toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 12px 0 20px; }
#activityEntryPanel { margin-bottom: 22px; }
.action-notice { position: fixed; z-index: 10000; bottom: 24px; right: 24px; max-width: min(480px, calc(100vw - 32px)); display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 12px; background: #102c50; color: white; box-shadow: 0 6px 30px #102c5040; border-left: 5px solid #78b8ea; }
.action-notice.error { background: #173b68; border-color: #cbdcf0; }
.action-notice button { background: transparent; border: 0; color: white; font-size: 26px; padding: 4px 8px; }
@media (max-width: 700px) { .top { padding: 12px; } .action-notice { bottom: 16px; right: 16px; } }

/* Trainer history: responsive fields and readable, wrapping notes. */
.injury-section { margin: 18px 0; }
.injury-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 14px; }
#injuryForm { margin-top: 18px; padding: 18px; background: #ffffff; border-radius: 12px; }
#injuryForm label { display: grid; gap: 6px; margin-bottom: 12px; }
#injuryNotes { width: 100%; box-sizing: border-box; }
.injury-record { border-top: 1px solid #cbdcf0; padding: 14px 0; }
.injury-record p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ===== Roster-led team layout and clear athlete identity ===== */
#teamRiskCard, #teamRosterCard, .athlete-injury-section { margin-top: 18px; }
.roster-help { margin-bottom: 14px; }
.roster tr.selected-runner { background: #e7f2ff; box-shadow: inset 4px 0 #102c50; }
.roster tr.selected-runner .name::after { content: ' · Selected'; font-size: .75rem; }
#trainerRunnerName { color: #102c50; margin: 16px 0; scroll-margin-top: 24px; }
#trainerHistorySection { scroll-margin-top: 24px; }
.empty-history { padding: 16px; background: #e7f2ff; border-radius: 10px; }
.athlete-identity { padding: 22px; background: #102c50; color: white; border-radius: 16px; align-items: center; }
.athlete-identity h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.6rem); overflow-wrap: anywhere; }
.athlete-identity .identity-label { color: #cbdcf0; font-size: .74rem; letter-spacing: .1em; font-weight: 750; margin-bottom: 8px; }
.athlete-identity .muted { color: #e7f2ff; }
.athlete-identity .athlete-top { min-width: min(280px, 100%); display: grid; gap: 8px; }
.athlete-identity select { width: 100%; font-size: 1.05rem; font-weight: 700; background: white; color: #102c50; }
/* Color alone is never the status cue: keep written labels and vary borders/fills. */
.status.review, .risk-pill.high { background: #102c50; color: white; border: 1px solid #102c50; }
.risk-pill.elevated { background: #e7f2ff; color: #102c50; border: 2px solid #102c50; }
.status.clear, .risk-pill.low { background: #e7f2ff; color: #102c50; border: 1px solid #78b8ea; }
.status.missing, .risk-pill.unknown { background: white; color: #173b68; border: 1px dashed #173b68; }
.action-notice.error { background: #102c50; border: 2px solid #78b8ea; border-left-width: 8px; }
.danger { color: #102c50 !important; border: 2px solid #102c50; }
input, select, textarea { accent-color: #173b68; color: #102c50; }
#injuryForm input, #injuryForm select, #injuryForm textarea { font: inherit; background: white; border: 1px solid #78b8ea; border-radius: 8px; padding: 10px; }
#cancelInjuryEntry, #retryConnection { color: #102c50; background: white; border: 1px solid #173b68; border-radius: 8px; padding: 10px 14px; }
@media(max-width:700px) { .athlete-identity { align-items: stretch; flex-direction: column; } .athlete-identity .athlete-top { width: 100%; } }

/* Whole-page light blue, including the area outside the centered site shell. */
html, body { background: #e7f2ff; min-height: 100%; }
body { min-height: 100vh; }
#weeklyReassessmentBtn { margin: 10px 0 16px; }

input[aria-invalid="true"] { border: 2px solid #173b68; background: #e6f3ff; }

/* Plain-language factor labels; retain the underlying measurement. */
.metric-subtitle {display:block;font-size:.82rem;font-weight:500;opacity:.8;margin:4px 0 8px;}
#leafFullReminder:not(:empty) {font-weight:650;margin:10px 0;}

/* Athlete factor cards match the compact trainer factor hierarchy. */
.athlete-grid .metric-card { padding: 18px 20px; background: #f3f7fd; border-radius: 14px; }
.athlete-grid .metric-label { font-size: 1.16rem; font-weight: 700; color: #173b68; line-height: 1.3; }
.athlete-grid .metric-subtitle { font-size: .86rem; font-weight: 600; color: #4c6483; opacity: 1; margin: 4px 0 10px; }
.athlete-grid .metric-card .value { font-size: 2rem; font-weight: 800; color: #102c50; line-height: 1.2; margin: 4px 0 6px; }
.athlete-grid .metric-card .detail { margin-top: 9px; }

/* Trainer title matches the navy athlete identity banner. */
.trainer-identity { padding: 22px; background: #102c50; color: white; border-radius: 16px; align-items: center; }
.trainer-identity h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.trainer-identity .muted { color: #e7f2ff; }
.trainer-identity .pill { background: white; color: #102c50; }

/* Athlete factor selectors share the team trend button presentation. */
.athlete-grid .metric-card { border: 1px solid #cbdcf0; border-radius: 12px; padding: 13px; background: #f3f7fd; text-align: left; }
.athlete-grid .metric-card.selected { border: 2px solid #173b68; background: #e7f2ff; }
.athlete-grid .metric-card .metric-label { font-size: 1.16rem; font-weight: 750; color: #102c50; }
.athlete-grid .metric-card .value { font-size: 2rem; font-weight: 800; }
.athlete-grid .metric-card:focus-visible { outline: 3px solid #173b68; outline-offset: 3px; }

/* Dashboard adjustment 6: consistent navy/light-blue identity and selected-runner parity. */
:root { --stride-navy: #102c50; --stride-blue: #173b68; --stride-light: #e7f2ff; --stride-border: #cbdcf0; }
html, body, main { background-color: var(--stride-light); color: var(--stride-navy); }
.card, .team-factor, .metric-card, .team-detail .card { background-color: #f3f7fd; border-color: var(--stride-border); color: var(--stride-navy); }
.team-factor.selected, .athlete-grid .metric-card.selected { background-color: var(--stride-light); border-color: var(--stride-blue); }
#teamDetail .panel-heading { background: var(--stride-navy); border-radius: 16px; padding: 22px; margin-bottom: 16px; color: white; }
#teamDetail .panel-heading h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; color: white; margin: 4px 0 8px; overflow-wrap: anywhere; }
#teamDetail .panel-heading .compact-text { color: var(--stride-light); }
#teamDetail .panel-heading .identity-label { color: var(--stride-border); font-size: .75rem; letter-spacing: .1em; font-weight: 750; margin: 0; }
#teamDetail .panel-heading .secondary { background: white; color: var(--stride-navy); border-color: var(--stride-border); }
.team-detail-metrics { align-items: stretch; }
.team-detail-metrics .trainer-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px; }
.trainer-metric .metric-label { font-size: 1.3rem; font-weight: 800; color: var(--stride-navy); }
.trainer-metric .metric-subtitle { font-size: .88rem; font-weight: 600; color: var(--stride-blue); margin: 0 0 3px; }
.trainer-metric .trainer-value { font-size: 2rem; font-weight: 800; line-height: 1.15; color: var(--stride-navy); }
.trainer-metric .detail { font-size: .86rem; margin: 2px 0; }
.trainer-metric .compact-text { margin: 0; }
@media (max-width: 650px) { #teamDetail .panel-heading { flex-wrap: wrap; } }

/* ===== STRIDE visual system: reference dashboard's white / navy / light-blue =====
   All three views share surfaces, controls, typography, and status language.
   Status remains differentiated by text, border, and fill, not hue alone. */
:root {
  color-scheme: light;
  --stride-navy: #102c50;
  --stride-blue: #173b68;
  --stride-light: #e7f2ff;
  --stride-ice: #f3f7fd;
  --stride-white: #ffffff;
  --stride-border: #cbdcf0;
  --stride-focus: #78b8ea;
}
html, body { background: var(--stride-white); color: var(--stride-navy); min-height: 100%; }
body { min-height: 100vh; }
main, .shell, #teamView, #athleteView, #setupView { background: var(--stride-white); }
/* Page panels remain white; inset data tiles are light blue, never beige. */
.card, .panel, .team-chart-section, .team-risk-card, .team-plot,
.team-interpretation, .athlete-injury-section,
#teamRiskCard, #teamRosterCard, #trainerHistorySection,
#injuryForm, fieldset {
  background: var(--stride-white);
  border-color: var(--stride-border);
  color: var(--stride-navy);
}
.team-factor, .team-detail-metrics .trainer-metric, .athlete-grid .metric-card,
.metric-card, .empty-history {
  background: var(--stride-ice);
  border-color: var(--stride-border);
  color: var(--stride-navy);
}
.team-factor.selected, .metric-card.selected, .athlete-grid .metric-card.selected,
.roster tr.selected-runner { background: var(--stride-light); border-color: var(--stride-blue); }
.team-factor:hover, .metric-card:hover, .roster tr[data-athlete]:hover {
  border-color: var(--stride-focus);
}
/* Strong identity banners; preserve existing structure and action controls. */
.athlete-identity, .heading.trainer-identity, #teamDetail .panel-heading {
  background: var(--stride-navy);
  color: var(--stride-white);
  border-radius: 16px;
  padding: 22px;
}
.athlete-identity h1, .heading.trainer-identity h1, #teamDetail .panel-heading h2,
.athlete-identity .name, #teamDetail .panel-heading .name {
  color: var(--stride-white);
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
  line-height: 1.18;
}
.athlete-identity .muted, .heading.trainer-identity .muted,
#teamDetail .panel-heading .compact-text, #teamDetail .panel-heading .identity-label {
  color: var(--stride-light);
}
/* Factor hierarchy: large name, explanatory source, prominent numeric reading. */
.team-factor .metric-label, .metric-card .metric-label,
.trainer-metric .metric-label { color: var(--stride-navy); font-size: 1.23rem; font-weight: 800; }
.team-factor .metric-subtitle, .metric-card .metric-subtitle,
.trainer-metric .metric-subtitle { color: var(--stride-blue); font-size: .87rem; font-weight: 650; }
.team-factor .big, .metric-card .value, .trainer-metric .trainer-value {
  color: var(--stride-navy); font-weight: 850; line-height: 1.1;
}
/* Navigation, actions, forms, table surfaces, and section accents. */
.tabs { background: var(--stride-light); }
.tabs button { color: var(--stride-blue); }
.tabs button.active { background: var(--stride-navy); color: var(--stride-white); }
.primary { background: var(--stride-blue); color: var(--stride-white); }
.primary:hover { background: var(--stride-navy); }
.secondary, #cancelInjuryEntry, #retryConnection {
  background: var(--stride-white); color: var(--stride-navy); border-color: var(--stride-border);
}
input, select, textarea, .select, .field input {
  background: var(--stride-white); color: var(--stride-navy); border-color: var(--stride-border);
  accent-color: var(--stride-blue);
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, .metric-card:focus-visible { outline: 3px solid var(--stride-focus); outline-offset: 2px; }
.roster th { background: var(--stride-light); color: var(--stride-navy); }
.roster td { background: transparent; }
.roster tr.selected-runner { box-shadow: inset 4px 0 var(--stride-navy); }
.roster tr.selected-runner td { background: var(--stride-light); }
.status.review, .risk-pill.high { background: var(--stride-navy); color: var(--stride-white); border: 1px solid var(--stride-navy); }
.status.clear, .risk-pill.low { background: var(--stride-light); color: var(--stride-navy); border: 1px solid var(--stride-focus); }
.status.missing, .risk-pill.unknown { background: var(--stride-white); color: var(--stride-blue); border: 1px dashed var(--stride-blue); }
.risk-pill.elevated { background: var(--stride-light); color: var(--stride-navy); border: 2px solid var(--stride-navy); }
.action-notice { background: var(--stride-navy); color: var(--stride-white); border-left-color: var(--stride-focus); }
.action-notice.error { background: var(--stride-navy); border-color: var(--stride-focus); }
.chart text, .chart .chart-label, .chart .chart-value, .chart .chart-threshold { fill: var(--stride-blue); }
footer, .foot { background: var(--stride-white); color: var(--stride-blue); }
/* Protect readability of light surfaces and navy identity panels. */
#teamDetail .panel-heading .secondary, .athlete-identity select { background: var(--stride-white); color: var(--stride-navy); }
@media(max-width:620px) {
  .athlete-identity, .heading.trainer-identity, #teamDetail .panel-heading { padding: 18px; }
  .team-factor .metric-label, .metric-card .metric-label { font-size: 1.12rem; }
}

/* Visual review adjustments 1–4 — white/navy/blue throughout. */
:root {
  --stride-navy: #102e59;
  --stride-blue: #2563a6;
  --stride-light: #e8f3ff;
  --stride-ice: #f0f7ff;
  --stride-border: #c9ddf5;
  --stride-focus: #64b5f6;
}
/* Matching team and athlete cards: white surfaces, larger blue factor titles. */
.team-factor-cards .team-factor,
.athlete-grid .metric-card {
  background: #fff;
  border: 1px solid var(--stride-border);
  border-radius: 14px;
  color: var(--stride-navy);
  padding: 17px 16px;
  text-align: left;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.team-factor-cards .team-factor.selected,
.athlete-grid .metric-card.selected {
  background: #fff;
  border: 2px solid var(--stride-focus);
  box-shadow: 0 0 0 1px #d8ebff;
}
.team-factor-cards .team-factor > span,
.athlete-grid .metric-card .metric-label {
  display: block;
  color: var(--stride-blue);
  font-size: clamp(1.25rem, 1.6vw, 1.48rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 5px;
}
.team-factor-cards .team-factor .metric-subtitle,
.athlete-grid .metric-card .metric-subtitle {
  color: #315783;
  font-size: .88rem;
  line-height: 1.45;
  font-weight: 600;
}
.team-factor-cards .team-factor strong,
.athlete-grid .metric-card .value {
  display: block;
  color: var(--stride-navy);
  font-size: clamp(1.9rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  font-weight: 850;
  margin: 11px 0 7px;
}
.team-factor-cards .team-factor small,
.athlete-grid .metric-card .detail { color: #173b67; }
/* LEA: white outer card and summary; pale-blue baseline/current boxes. */

/* Injury history: pale-blue empty state, blue-tinted populated records. */
.athlete-injury-section { background: #fff; border-color: var(--stride-border); }
.athlete-injury-section h2 { color: var(--stride-navy); }
.athlete-injury-section .compact-text { color: #315783; }
.athlete-injury-section .empty-history,
.athlete-injury-section .injury-record,
#trainerHistorySection .empty-history,
#trainerHistorySection .injury-record {
  background: var(--stride-light);
  color: var(--stride-navy);
  border: 1px solid var(--stride-border);
  border-radius: 12px;
  padding: 16px;
}
/* Apply blue-only surfaces to notices and supporting dashboard elements. */
.empty-history,
.weekly-question {
  background-color: var(--stride-ice);
  border-color: var(--stride-border);
  color: var(--stride-navy);
}
@media(max-width:650px) {
  .team-factor-cards { grid-template-columns: 1fr; }
}

/* ===== Factor info: magnifying-glass buttons and explanation dialog ===== */
.factor-wrap { position: relative; display: flex; }
.factor-wrap > .metric-card, .factor-wrap > .team-factor { flex: 1; width: 100%; padding-right: 54px; }
.team-detail-metrics .trainer-metric { position: relative; padding-right: 54px; }
.info-btn {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--stride-border); border-radius: 50%;
  background: #fff; color: var(--stride-blue);
}
.info-btn:hover { background: var(--stride-light); border-color: var(--stride-blue); }
.info-btn:focus-visible { outline: 3px solid var(--stride-blue); outline-offset: 2px; }
.info-btn svg, .info-inline svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
}
.info-inline { display: inline-flex; vertical-align: -3px; color: var(--stride-blue); }
.info-inline svg { width: 15px; height: 15px; }

#infoDialog {
  width: min(680px, calc(100vw - 24px));
  max-height: min(90vh, 900px);
  border: 1px solid var(--stride-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--stride-ice);
  color: var(--stride-navy);
  box-shadow: 0 24px 90px #102c5055;
  overflow: auto;
}
#infoDialog::backdrop { background: #102c50a8; }
.info-body { line-height: 1.55; }
.info-body h3 { margin: 20px 0 8px; font-size: 1.02rem; }
.info-body ol { padding-left: 22px; margin: 0; }
.info-body ol li { margin-bottom: 8px; }
.info-body ul { margin: 6px 0; padding-left: 20px; }
.info-lead { font-size: 1.05rem; margin: 14px 0 4px; }
.info-example {
  background: #fff; border: 1px solid var(--stride-border); border-left: 4px solid var(--stride-blue);
  border-radius: 10px; padding: 10px 14px; margin: 14px 0 0;
}
.info-scale { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.info-scale td { padding: 9px 12px; border-bottom: 1px solid var(--stride-border); vertical-align: top; }
.info-scale tr:last-child td { border-bottom: 0; }
.info-scale td:first-child { white-space: nowrap; font-weight: 700; width: 1%; }
.info-tech { font-size: .82rem; color: var(--stride-blue); margin-top: 16px; }
.info-note {
  font-size: .86rem; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--stride-border);
}
.foot p { margin: 0 16px 24px; }

/* ===== Suggested actions and team summary: grouped, scannable bullets ===== */
#teamDetailActions { list-style: none; padding-left: 0; }
.action-item { padding: 10px 12px; border: 1px solid var(--stride-border); border-left: 4px solid var(--stride-border); border-radius: 10px; background: #fff; }
.action-item + .action-item { margin-top: 8px; }
.action-item.rank-0 { border-left-color: var(--stride-navy); }
.action-item.rank-1 { border-left-color: var(--stride-blue); }
.action-item ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; }
.action-item ul li + li { margin-top: 3px; }
.action-factor { font-weight: 800; color: var(--stride-navy); }
.action-status {
  display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: var(--stride-light); color: var(--stride-blue);
}
.rank-0 .action-status { background: var(--stride-navy); color: #fff; }
.action-medical { background: var(--stride-light); border-color: var(--stride-blue); border-left-color: var(--stride-navy); }
#teamRiskText ul { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; color: #173b68; line-height: 1.5; }
#teamRiskText strong, .action-item ul strong { display: inline; color: var(--stride-navy); }
.leaf-profile .detail-line { display: block; }

/* ===== Athlete view: chart + suggested action side panel, medical note, Energy check-in ===== */
.factor-chart-card { margin-top: 18px; }
.factor-chart-card .team-chart-body { align-items: start; }
.factor-advice { margin: 0; }
.factor-advice ul { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; color: #173b68; line-height: 1.5; }
.factor-advice ul li + li { margin-top: 4px; }
.factor-advice strong { display: inline; color: var(--stride-navy); }
.factor-advice #factorAdviceHeading { display: block; }
.advice-others { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--stride-border); font-size: .85rem; }
.medical-note { margin-top: 16px; background: var(--stride-light); border: 1px solid var(--stride-blue); border-left: 4px solid var(--stride-navy); }
.medical-note h2 { font-size: 1.05rem; margin: 0 0 6px; }
.medical-note ul { margin: 0; padding-left: 18px; font-size: .9rem; line-height: 1.5; }

.energy-card { margin-top: 18px; }
.energy-scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.energy-scores > div { background: var(--stride-ice); border: 1px solid var(--stride-border); border-radius: 10px; padding: 10px 12px; }
.energy-scores p { margin: 4px 0 0; font-size: .95rem; }
.energy-scores strong { font-size: 1.25rem; }
.energy-score-label { font-size: .78rem; font-weight: 700; color: var(--stride-blue); text-transform: uppercase; letter-spacing: .03em; }
#leafComparisonSummary { margin: 6px 0 0; }
.next-step { margin: 14px 0; padding: 14px 16px; background: var(--stride-light); border: 1px solid var(--stride-border); border-left: 4px solid var(--stride-navy); border-radius: 12px; }
.next-step h3 { margin: 0 0 6px; font-size: 1.08rem; color: var(--stride-navy); }
.next-step p { margin: 4px 0; font-size: .92rem; line-height: 1.5; }
.next-step .form-actions { margin-top: 10px; }
.next-step .form-actions:not(:has(button:not([hidden]))) { display: none; }
.energy-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.energy-links details { font-size: .9rem; }
@media (max-width: 650px) { .energy-scores { grid-template-columns: 1fr; } }

/* ===== Compact display: show the dashboard at 80% on laptop/desktop screens (phones stay full size) ===== */
@media (min-width: 900px) {
  body { zoom: .8; }
  .shell { max-width: 1812px; } /* 1450px ÷ 0.8: same usable width as browser zoom at 80% */
}

/* ===== Readability on wide screens =====
   The 80% display scale above shrinks small print to ~9–11px. Lift supporting text to a readable
   floor (≈12.5–14px on screen) and let charts use the empty space beside them, so their labels
   grow too. Headings and big numbers keep their current sizes, so the hierarchy is unchanged. */
.chart text { font-size: 14px; }
.chart .chart-label { font-size: 15px; }
.chart .chart-value { font-size: 15px; }
.chart .chart-threshold { font-size: 14px; }

@media (min-width: 900px) {
  body { font-size: 1.06rem; }

  /* Captions, subtitles and helper text */
  .metric-label, .small, .detail, .compact-text, .field, .feedback,
  .team-factor small, .team-factor-cards .team-factor small,
  .trainer-metric .detail, .athlete-grid .metric-card .detail { font-size: 1rem; }
  .metric-subtitle, .team-factor .metric-subtitle, .metric-card .metric-subtitle,
  .trainer-metric .metric-subtitle, .team-factor-cards .team-factor .metric-subtitle,
  .athlete-grid .metric-card .metric-subtitle { font-size: 1rem; }
  .leaf-profile { font-size: .98rem; }
  .legend, .foot, .info-tech { font-size: .95rem; }
  .info-note { font-size: 1rem; }
  .pill { font-size: .95rem; }
  .athlete-identity .identity-label, #teamDetail .panel-heading .identity-label { font-size: .88rem; }

  /* Status chips */
  .status, .risk-pill { font-size: .9rem; }
  .action-status { font-size: .88rem; }
  .roster tr.selected-runner .name::after { font-size: .88rem; }

  /* Tables and lists */
  .roster th, .factor-table th { font-size: .88rem; }
  .roster td, .factor-table td { font-size: 1.02rem; }
  .factor-table .factor-detail { font-size: .92rem; }
  .factor-table select { font-size: .95rem; }
  .workout { font-size: 1rem; }
  .workout .simulated-mark { font-size: .82rem; }
  .team-interpretation p, #teamRiskText ul { font-size: 1.02rem; }
  .factor-advice ul, .medical-note ul, .next-step p { font-size: 1.05rem; }
  .advice-others, .check, .energy-links details { font-size: 1rem; }
  .energy-score-label { font-size: .9rem; }
  .energy-scores p { font-size: 1.05rem; }

  /* Charts: fill the space beside them instead of stopping at 600–680px */
  .team-chart-body { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); }
  .chart, .team-detail-charts .chart { max-width: none; }
  .team-detail-charts .card:last-child .chart { max-width: 820px; }
}
