:root {
  color-scheme: light;
  --ink: #1b2c34;
  --muted: #526771;
  --line: #dce6e8;
  --page: #f2f6f7;
  --nav: #12262d;
  --teal: #086855;
  --teal-strong: #075846;
  --accent: #0b826c;
  --light-teal: #e5f4ee;
  --shadow: 0 2px 3px #19363b08;
  font: 100%/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1a907c; outline-offset: 3px; }
main:focus { outline: 0; }
.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 23px 14px;
  background: var(--nav);
  color: #edf6f6;
  z-index: 1;
}
.brand { display: flex; align-items: center; gap: 10px; padding-inline: 7px; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: -.038em; }
.brand div span { display: block; font-size: .8125rem; color: #b1c7cb; }
.pitch {
  position: relative;
  flex: 0 0 30px;
  height: 24px;
  border: 1.5px solid #93e6c2;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent calc(50% - .6px), #93e6c2 calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px));
}
.pitch::after { content: ""; position: absolute; inset: 6px 9px; border-radius: 50%; border: 1px solid #93e6c2; }
.nav { display: grid; gap: 5px; margin-top: 35px; }
.nav button {
  text-align: left;
  color: #c5d6d9;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: .875rem;
  font-weight: 650;
}
.nav button:hover { background: #203a41; }
.nav button[aria-current] { background: #254249; border-color: #35565c; color: white; }
.nav button[aria-current] .icon { color: #a5e9cd; }
.icon { width: 15px; height: 15px; position: relative; flex: 0 0 15px; color: #aac9ca; }
.dashboard-icon { border: 1.5px solid currentColor; border-radius: 3px; }
.dashboard-icon::after { content: ""; position: absolute; inset: 2px 5px; border-inline: 1px solid currentColor; }
.calendar-icon { border: 1.5px solid currentColor; border-radius: 3px; }
.calendar-icon::after { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1px solid currentColor; }
.entry-icon { border: 1.5px solid currentColor; border-radius: 3px; }
.entry-icon::after { content: "+"; position: absolute; inset: -4px 0 0; text-align: center; font-style: normal; }
.roster-icon::after { content: ""; position: absolute; inset: 2px 0; border-block: 1.5px solid currentColor; background: linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat; }
.sidebar-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-inline: 7px; font-size: .8125rem; color: #b1c7cb; }
.storage-dot { width: 6px; height: 6px; background: #7adcaf; border-radius: 50%; }
.surface { min-width: 0; }
.topbar {
  min-height: 71px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px clamp(16px, 2.5vw, 36px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cycle-selector { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.cycle-selector select { max-width: min(350px, 55vw); }
.cycle-selector label, .context-bar label { font-weight: 690; color: var(--muted); font-size: .875rem; }
.demo-tag, .count { border: 1px solid #d3e6e0; border-radius: 6px; background: #edf6f3; color: #21634f; padding: 3px 8px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.main { max-width: 1600px; margin-inline: auto; padding: 25px clamp(16px, 2.5vw, 36px) 42px; }
.page-head, .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head { margin-bottom: 19px; }
h1 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); font-weight: 770; line-height: 1.13; letter-spacing: -.048em; }
h2 { font-size: 1.13rem; font-weight: 750; line-height: 1.22; letter-spacing: -.022em; }
.page-head p { color: var(--muted); margin-top: 5px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-weight: 690;
  font-size: .875rem;
  line-height: 1.2;
  white-space: nowrap;
}
.button:disabled { opacity: .57; cursor: default; }
.primary { background: var(--teal); border-color: var(--teal); color: white; }
.primary:not(:disabled):hover { background: var(--teal-strong); }
.secondary { background: white; border-color: #cddcdf; }
.secondary:not(:disabled):hover { background: #ecf5f2; border-color: #b6d5c9; }
.text-button { color: var(--teal); min-height: 31px; padding: 5px 9px; }
.text-button:hover { background: #e9f4ef; }
input:not([type=checkbox]), select {
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #cddcdf;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
select {
  appearance: none;
  padding-right: 29px;
  background-image: linear-gradient(45deg, transparent 50%, #49636c 50%), linear-gradient(135deg, #49636c 50%, transparent 50%);
  background-position: calc(100% - 14px) 51%, calc(100% - 9px) 51%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.context-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin-bottom: 13px; }
.context-bar label { display: flex; align-items: center; gap: 9px; }
.context-bar select { min-width: 141px; max-width: 225px; }
.context-bar p, .range-label { color: var(--muted); font-size: .875rem; }
.range-label { margin-left: auto; }
.range-label strong { color: var(--teal); padding-left: 3px; }
.card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.card-head { padding: 15px 17px; }
.card-head p { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 13px 14px; }
.kpi-label { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.kpi-label strong { color: var(--teal); font-size: .875rem; }
.kpi-label span, .kpi-value span { color: var(--muted); font-size: .8125rem; }
.kpi-value { display: flex; align-items: baseline; gap: 1px 7px; flex-wrap: wrap; margin-top: 3px; }
.kpi-value strong { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.13; letter-spacing: -.056em; font-variant-numeric: tabular-nums; }
.meter { display: block; margin-block: 9px 8px; height: 5px; overflow: hidden; background: #e5ecef; border-radius: 5px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.kpi-data, .player-check dl { display: grid; gap: 4px; margin-bottom: 9px; font-size: .875rem; }
.kpi-data div, .player-check dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; }
dt { color: var(--muted); }
dd { font-weight: 690; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 7px; font-size: .8125rem; font-weight: 700; white-space: nowrap; line-height: 1.27; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.low { background: #fff0d2; color: #765002; }
.pill.good { background: #e0f2e7; color: #145a3d; }
.pill.high { background: #fbe3e3; color: #922f37; }
.pill.none { background: #edf2f4; color: #50646f; }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(225px, 1fr); gap: 14px; margin-block: 15px; }
.metrics { display: inline-flex; align-items: center; gap: 3px; background: #edf3f4; border: 1px solid #e4ebed; padding: 3px; border-radius: 8px; }
.metrics button { min-height: 29px; background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 3px 8px; font-weight: 700; color: #47616c; font-size: .8125rem; }
.metrics button:hover { background: #e2eeeb; }
.metrics button[aria-pressed=true] { background: #fff; color: var(--teal); border-color: #d3e2df; box-shadow: var(--shadow); }
.legend { display: flex; gap: 12px; padding-inline: 17px; font-size: .8125rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.planned-key { background: #bdced5; }
.actual-key { background: #15846d; }
.chart { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; margin: 13px 17px 12px; height: 163px; color: var(--muted); font-size: .8125rem; --labels: 23px; }
.axis { min-width: 31px; position: relative; }
.ticks { display: flex; flex-direction: column; justify-content: space-between; line-height: 1; text-align: right; translate: 0 -.5em; height: calc(100% - var(--labels) + 1em); font-variant-numeric: tabular-nums; }
.ticks span { white-space: nowrap; }
.axis { width: max-content; }
.plot { display: grid; grid-template-columns: repeat(var(--days), minmax(0,1fr)); position: relative; }
.gridlines { position: absolute; inset: 0 0 var(--labels); display: flex; justify-content: space-between; flex-direction: column; }
.gridlines i { border-top: 1px solid #e6edef; }
.plot-day { display: grid; grid-template-rows: minmax(0,1fr) var(--labels); position: relative; text-align: center; }
.plot-day span { padding-top: 4px; }
.bars { display: grid; align-items: end; justify-content: center; grid-template-columns: repeat(2,minmax(0,23px)); gap: 3px; padding-inline: 4px; }
.bar { display: block; border-radius: 3px 3px 0 0; }
.status-list { display: grid; padding: 0 15px; }
.status-row { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 7px 3px; border: 0; border-bottom: 1px solid #eaf0f1; color: var(--ink); background: transparent; }
.status-row:last-child { border: 0; }
.status-row:hover { background: #f3f8f7; }
.status-row strong { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.player-check { padding: 0 17px 15px; }
.player-check dl { gap: 10px; }
.card-foot { padding: 10px 17px; color: var(--muted); font-size: .8125rem; border-top: 1px solid var(--line); }
.check-card .card-foot { border: 0; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; text-align: right; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 12px; white-space: nowrap; }
thead { background: #f5f8f9; color: #475f69; }
th { font-weight: 690; }
th:first-child, td:first-child { text-align: left; padding-left: 17px; }
th:last-child, td:last-child { padding-right: 17px; }
tbody tr { border-top: 1px solid #e9eff0; }
tbody tr:hover { background: #fafcfc; }
.day-cell { display: flex; align-items: baseline; gap: 7px; }
.day-cell small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.stack { display: grid; gap: 13px; }
.form-body { padding: 0 17px 16px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-card > .form-grid.two { max-width: 480px; }
.form-grid label, .dialog-fields label, .roster-controls label, .day-select { display: grid; gap: 5px; font-size: .875rem; font-weight: 650; min-width: 0; }
.form-grid input, .form-grid select, .dialog-fields input:not([type=checkbox]), .dialog-fields select { width: 100%; }
.edit-table input { background: #f9fbfb; width: 100%; min-width: 70px; }
.edit-table td { padding-block: 5px; }
.weight-cell { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.weight-cell input { width: 78px; }
.weight-cell span { min-width: 47px; color: var(--muted); }
.save-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.error { color: #922f37; font-size: .875rem; }
.entry-head { justify-content: flex-start; gap: 13px 21px; }
.entry-head .primary { margin-left: auto; }
.entry-coverage { display: grid; gap: 2px; font-size: .875rem; }
.entry-coverage span, .entry-hint { color: var(--muted); font-size: .875rem; }
.entry-hint { padding: 0 17px 12px; }
.entry-table th:nth-child(2), .entry-table td:nth-child(2), .roster-table th:nth-child(2), .roster-table td:nth-child(2) { text-align: left; }
.entry-bottom { display: flex; justify-content: flex-end; }
.empty { padding: 19px 17px; display: grid; justify-items: start; gap: 9px; color: var(--muted); }
.roster-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; padding: 0 17px 14px; }
.roster-controls label { min-width: 120px; }
.roster-metrics { display: grid; gap: 5px; }
.roster-metrics > span { font-size: .875rem; font-weight: 650; }
.player-link { padding: 2px; border: 0; color: var(--teal); background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(470px, calc(100% - 24px)); color: var(--ink); box-shadow: 0 12px 55px #10292a49; }
dialog::backdrop { background: #10292d82; }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-intro { color: var(--muted); margin-top: 7px; font-size: .875rem; }
.dialog-fields { display: grid; gap: 12px; margin-block: 14px; }
.dialog-fields .check-label { display: flex; align-items: center; gap: 7px; font-weight: 540; }
input[type=checkbox] { accent-color: var(--teal); }
.dialog-actions { justify-content: flex-end; }
dialog .error { margin-block: 0 12px; }
.icon-button { border: 0; border-radius: 6px; background: #edf3f4; width: 34px; height: 34px; font-size: 1.25rem; color: var(--ink); }
.notice { position: fixed; right: 17px; bottom: 17px; z-index: 4; background: var(--nav); color: #fff; padding: 11px 15px; border-radius: 8px; box-shadow: 0 3px 12px #18302e42; font-size: .875rem; max-width: calc(100% - 34px); }
@media(max-width: 1130px) {
  .layout { grid-template-columns: 193px minmax(0,1fr); }
  .kpi-label span { width: 100%; }
  .kpi-label { gap: 0 6px; }
}
@media(max-width: 890px) {
  .layout { display: block; }
  .sidebar { position: relative; height: auto; padding: 10px 14px; gap: 9px; }
  .sidebar-foot { display: none; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
  .nav button { min-height: 34px; padding: 5px 8px; gap: 6px; }
  .topbar { min-height: 56px; }
  .kpi-label span { width: auto; }
}
@media(max-width: 620px) {
  .main { padding-top: 18px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .analysis-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .range-label { margin-left: 0; }
  .form-grid.three, .form-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid.three > label:first-child { grid-column: 1 / -1; }
  .entry-head .primary { margin-left: 0; }
}
@media(max-width: 380px) {
  .nav .icon { display: none; }
  .nav button { font-size: .8125rem; }
  .topbar, .main { padding-inline: 12px; }
  .kpi { padding: 11px; }
  .kpi-label span { width: 100%; }
}

.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics { flex-wrap: wrap; }
.gps-banner { padding: 10px 14px; border: 1px solid #cfe3dc; border-radius: 8px; background: #eaf5f0; color: #20584c; margin-bottom: 13px; font-size: .875rem; }
.gps-empty { padding: 22px; }
.gps-empty p { color: var(--muted); margin-top: 5px; max-width: 75ch; }
.gps-controls, .gps-table-head { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 14px 17px; }
.gps-controls { background: #f8fafb; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; }
.gps-controls label { display: grid; gap: 4px; max-width: 100%; color: var(--muted); font-weight: 680; font-size: .875rem; }
.gps-wide { flex: 0 1 300px; }
.gps-controls select { width: 100%; max-width: 100%; }
.gps-table-head { align-items: center; justify-content: space-between; }
.gps-table-head p { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.gps-table th small, .gps-metric-cell small { display: block; font-size: .75rem; font-weight: 550; color: var(--muted); }
.gps-table th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 #e9eff0; }
.gps-table thead th:first-child { background: #f5f8f9; }
.gps-table tfoot th:first-child, .gps-table tfoot { background: #edf6f2; }
.gps-table tfoot { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -1px #b9d4cb; }
.gps-table tfoot td { background: #edf6f2; }
.gps-table tfoot td.speed-exposure { background: #e0f1e9; }
.gps-table th:nth-child(2), .gps-table td:nth-child(2) { text-align: left; }
.gps-table td, .gps-table th { padding-right: 9px; padding-left: 9px; }
.gps-report-table th[scope=col] { text-wrap: wrap; }
.gps-table th:first-child { padding-left: 17px; }
.gps-metric-cell strong { font-weight: 690; }
.gps-metric-cell .relative-value { color: var(--teal-strong); }
.gps-metric-cell .no-reference { color: #637782; }
.speed-exposure { border-left: 1px solid #d6e8e1; background: #f1f8f5; color: #135847; }
.gps-table-wrap { max-height: 67vh; overflow: auto; }
.gps-table thead th { background: #f5f8f9; position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px #dce6e8; }
.gps-table thead th:first-child { z-index: 3; }
.gps-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.gps-summary article { display: grid; gap: 6px; padding: 13px 16px; color: var(--muted); font-size: .875rem; }
.gps-summary strong { color: var(--ink); font-size: 1.65rem; line-height: 1.05; letter-spacing: -.045em; }
#gps-dialog { width: min(670px, calc(100% - 24px)); }
#gps-dialog input[type=file] { min-width: 0; width: 100%; }
#gps-dialog input::file-selector-button { margin-right: 9px; background: #edf6f3; border: 1px solid #d2e4dc; border-radius: 5px; padding: 3px 8px; font: inherit; color: var(--teal-strong); cursor: pointer; }
.gps-sheet-list { display: grid; gap: 5px; max-height: 175px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin: 0; }
.gps-sheet-list legend { font-size: .875rem; color: var(--muted); padding: 0 4px; font-weight: 690; }
.gps-sheet-list span { color: var(--muted); }
.gps-import-status { display: grid; gap: 4px; color: var(--muted); font-size: .875rem; }
.gps-import-status strong { color: var(--ink); }
.gps-import-status.error { color: #922f37; }
.gps-import-status summary { cursor: pointer; }
@media(max-width: 620px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gps-controls label { width: 100%; flex: 0 1 100%; }
  .gps-summary { gap: 6px; }
  .gps-summary article { padding: 8px; }
}

.monitor-filters {
  display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; padding:13px 16px; margin-bottom:15px;
}
.monitor-filters label {
  display:grid; gap:5px; min-width:112px; max-width:100%; color:var(--muted); font-size:.875rem; font-weight:680;
}
.monitor-filters select { width:100%; min-width:0; }
.monitor-wide { flex:0 1 340px; }
.monitor-date-banner {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding:15px 17px; margin-bottom:15px; border-radius:10px; background:var(--nav); color:#edf7f6;
}
.monitor-date-banner strong { display:block; font-size:1.125rem; }
.monitor-date-banner span { color:#c5d8d8; font-size:.875rem; }
.monitor-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-bottom:15px; }
.monitor-stat { display:grid; align-content:start; gap:4px; padding:13px 15px; }
.monitor-stat span { color:var(--muted); font-weight:670; font-size:.875rem; }
.monitor-stat strong { font-size:clamp(1.5rem,2.7vw,2.25rem); letter-spacing:-.045em; line-height:1.12; font-variant-numeric:tabular-nums; }
.monitor-stat small { color:var(--muted); font-size:.8125rem; }
.alert-list article { display:grid; grid-template-columns:minmax(120px,.62fr) minmax(0,1.8fr) auto; gap:12px; align-items:center; padding:14px 17px; border-top:1px solid var(--line); }
.alert-list h3 { font-size:1rem; }
.alert-list p { color:var(--muted); font-size:.8125rem; }
.alert-values { display:flex; flex-wrap:wrap; gap:6px; }
.alert-chip { background:#fbe7e5; color:#882f30; border:1px solid #f0d0cf; border-radius:6px; padding:4px 7px; font-size:.8125rem; white-space:nowrap; }
.alert-chip small { display:block; font-size:.72rem; color:#754b49; }
.monitor-table-wrap { max-height:66vh; overflow:auto; }
.monitor-table th small, .monitor-table td small { display:block; font-size:.75rem; font-weight:550; color:var(--muted); }
.monitor-table th:nth-child(2),.monitor-table td:nth-child(2) { text-align:left; }
.monitor-empty { min-height:90px; align-content:center; }
.monitor-empty h2 { margin-bottom:5px; }
.monitor-share { display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; }
.monitor-share label { flex:1 1 220px; }
.monitor-share a { color:var(--teal-strong); font-size:.875rem; align-self:center; }
.monitor-modal-status { margin:8px 0 12px; color:var(--muted); font-size:.875rem; }
.monitor-modal-status.error { color:#922f37; }
#monitor-dialog { width:min(620px,calc(100% - 24px)); }
#monitor-dialog input[type=file] { width:100%; }
.individual-table th:nth-child(2),.individual-table td:nth-child(2) { text-align:right; }
.individual-table td small { margin-top:3px; }
.individual-table input { width:92px; }
.individual-table .individual-note { width:215px; }

.athlete-body { background:#edf4f4; }
.athlete-layout { max-width:600px; margin-inline:auto; padding:20px 14px 32px; }
.athlete-head { display:flex; align-items:center; gap:14px; padding:16px 17px; background:var(--nav); color:#fff; border-radius:11px; margin-bottom:13px; }
.athlete-head h1 { font-size:clamp(1.3rem,4.3vw,2rem); }
.athlete-head p { color:#c5d8d8; margin-top:4px; font-size:.875rem; }
.athlete-card,.athlete-message { padding:17px; margin-bottom:13px; }
.athlete-card > p { margin:5px 0 13px; color:var(--muted); font-size:.925rem; }
.athlete-scale { border:0; min-width:0; padding:0; margin:0 0 13px; }
.athlete-scale legend { font-weight:700; padding:0; }
.athlete-scale p { display:flex; justify-content:space-between; gap:8px; margin:3px 0; font-size:.8125rem; color:var(--muted); }
.athlete-choices { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.athlete-choices label { position:relative; cursor:pointer; }
.athlete-choices input { position:absolute; inset:0; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.athlete-choices span { display:grid; place-items:center; min-height:41px; border:1px solid var(--line); border-radius:6px; font-weight:700; }
.athlete-choices input:checked + span { color:#fff; background:var(--teal); border-color:var(--teal); }
.athlete-choices input:focus-visible + span { outline:3px solid #1a907c; outline-offset:2px; }
.athlete-field { display:grid; gap:5px; font-weight:670; font-size:.875rem; margin-bottom:12px; }
.athlete-actions { display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; margin-top:13px; }
.athlete-actions [data-response] { color:var(--teal-strong); font-size:.875rem; }
.athlete-actions [data-response].error { color:#922f37; }
@media(max-width:842px) {
  .alert-list article { grid-template-columns:1fr; gap:7px; }
  .alert-list article .button { justify-self:start; padding-left:0; }
}
@media(max-width:620px) {
  .monitor-filters { padding:10px; gap:8px; }
  .monitor-filters label { flex:1 0 46%; min-width:0; }
  .monitor-filters .monitor-wide { flex-basis:100%; }
  .monitor-stat { padding:9px; }
  .monitor-stat span,.monitor-stat small { font-size:.75rem; }
  .monitor-stats { gap:6px; }
}

.monitor-table tfoot { background:#edf6f2; color:#125446; font-weight:690; border-top:1px solid #bdd9d0; }

.access-body { min-height:100vh; display:grid; place-items:center; padding:24px; background:#0c2025; }
.access-shell { width:min(850px,100%); display:grid; grid-template-columns:1fr 1.05fr; background:#f2f6f5; border-radius:20px; overflow:hidden; }
.access-intro { padding:42px 34px; background:#10363b; color:#fff; display:grid; align-content:center; gap:20px; box-shadow:inset 0 -4px #2a9e85; }
.access-intro h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.05; letter-spacing:-.04em; }
.access-intro p { color:#c8e0df; max-width:34ch; }
.access-card { margin:28px; padding:26px; }
.access-card h2 { font-size:1.5rem; margin-bottom:14px; }
.access-help { margin:0 0 14px; color:var(--muted); font-size:.875rem; }
.access-card form,.access-card label { display:grid; gap:8px; }
.access-card form { gap:13px; }
.access-card label { color:var(--muted); font-size:.9rem; font-weight:650; }
.access-card input { width:100%; }
.access-links { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:3px 9px; margin-top:10px; }
.access-links button { padding-left:0; }
#athlete-logout { margin-left:auto; }
@media(max-width:690px) {
  .access-body { padding:12px; }
  .access-shell { grid-template-columns:1fr; }
  .access-intro { padding:22px; gap:8px; }
  .access-intro h1 { font-size:1.8rem; }
  .access-card { margin:12px; padding:18px; }
}

.sidebar-logout { margin-top:auto; margin-bottom:10px; align-self:start; }
.sidebar-logout + .sidebar-foot { margin-top:0; }
.sidebar { overflow-y:auto; }
.injury-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.injury-chart-wrap { overflow:auto; padding:0 14px; }
.injury-chart { width:100%; min-width:580px; max-height:235px; display:block; }
.injury-chart text { font:12px system-ui,sans-serif; fill:#475a61; }
.injury-chart line { stroke:#e3e9eb; stroke-width:1; }
.injury-chart rect { fill:#c2e1dc; }
.injury-chart polyline { fill:none; stroke:#147763; stroke-width:2.5; stroke-linejoin:round; }
.injury-chart circle { fill:#147763; }
.injury-breakdown { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.injury-list { margin:0; padding:0 16px 11px; list-style:none; }
.injury-list li { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-top:1px solid var(--line); }
button.danger { border-color:#a63838; color:#8d2222; }
button.primary.danger { background:#953232; color:#fff; }
@media(max-width:720px) {
  .injury-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
  .injury-breakdown {grid-template-columns:1fr;}
}

.monitor-wellness-live { margin-top: 18px; }
