:root {
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-alt: #eef2fa;
  --text: #0f1d35;
  --muted: #64748b;
  --border: #dde4f0;
  --primary: #1a47c9;
  --primary-dark: #0c1b3d;
  --accent: #00c8dc;
  --shadow: 0 18px 48px rgba(15, 29, 53, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 15px;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 220, 0.07), transparent 32%),
    radial-gradient(circle at bottom left, rgba(26, 71, 201, 0.06), transparent 38%),
    linear-gradient(180deg, #f7f9ff 0%, var(--bg) 100%);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

html.modal-page-locked,
body.modal-page-locked {
  overflow: hidden;
}

body.modal-page-locked {
  position: fixed;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell-layout {
  height: 100vh;
  display: flex;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.shell-main {
  width: 0;
  min-width: 0;
  height: 100vh;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shell-sidebar {
  display: flex;
  width: 260px;
  height: 100vh;
  flex: 0 0 260px;
  position: sticky;
  top: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, #0c1b3d 0%, #0f2554 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.shell-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.25rem 0.5rem 0 0.5rem;
}

.shell-sidebar__brand strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.15;
}

.shell-sidebar__brand span,
.shell-sidebar__profile span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8rem;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a47c9 0%, #00c8dc 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(26, 71, 201, 0.25);
}

.shell-sidebar__nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
}

.shell-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 600;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}

.shell-sidebar__link i {
  width: 1.05rem;
  min-width: 1.05rem;
  display: inline-flex;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.shell-sidebar__link:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.shell-sidebar__link.is-active {
  background: rgba(26, 71, 201, 0.82);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(26, 71, 201, 0.25);
}

.shell-sidebar__link.is-disabled {
  opacity: 0.32;
  cursor: default;
}

.shell-sidebar__profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-sidebar__profile-wrap {
  position: relative;
}

.shell-sidebar__profile--public {
  align-items: center;
}

.shell-sidebar__profile--button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: inherit;
  text-align: left;
  font-family: inherit;
}

.shell-sidebar__profile--button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.shell-sidebar__profile strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
}

.shell-sidebar__avatar {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
}

.shell-sidebar__profile-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.shell-sidebar__profile-arrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  transition: transform 0.15s ease;
}

.shell-sidebar__profile--button[aria-expanded="true"] .shell-sidebar__profile-arrow {
  transform: rotate(180deg);
}

.profile-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.5rem);
  display: none;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 17, 40, 0.22);
  z-index: 20;
}

.profile-menu.is-open {
  display: grid;
}

.profile-menu a,
.profile-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 0;
  background: #fff;
  color: #0d2348;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-menu i {
  width: 1rem;
  color: var(--primary);
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #edf2fb;
}

.profile-menu form {
  margin: 0;
}

.shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 228, 240, 0.75);
  position: sticky;
  top: 0;
  z-index: 100;
}

.shell-topbar__title {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.shell-topbar__crest {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 29, 53, 0.1);
}

.shell-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.shell-topbar__actions form {
  margin: 0;
}

.shell-topbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  background: #e9efff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.shell-topbar__cta.is-active {
  background: var(--primary);
  color: #fff;
}

.shell-topbar__cta--secondary {
  background: #0c1b3d;
  color: #fff;
}

.app-content {
  padding-bottom: 2rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.container-app {
  width: min(1120px, calc(100% - 1.5rem));
  max-width: calc(100% - 1.5rem);
  margin: 0 auto;
  min-width: 0;
}

.container-app--messages {
  width: min(1120px, calc(100% - 1.5rem));
}

.container-app--narrow {
  width: min(840px, calc(100% - 1.5rem));
}

.page-shell {
  padding: 1rem 0 2rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.page-hero,
.panel-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero--compact {
  margin-bottom: 1.25rem;
}

.page-hero__eyebrow,
.panel-card__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1,
.panel-card h2,
.empty-state h3 {
  margin: 0;
  color: #091b3d;
}

.page-hero__summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  max-width: 62ch;
}

.stats-grid,
.form-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1rem;
}

.metric-card {
  padding: 1.1rem 1.2rem;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.65rem;
  color: var(--primary);
}

.metric-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.metric-card--attention-low {
  border-color: rgba(212, 139, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 139, 0, 0.18), 0 18px 42px rgba(212, 139, 0, 0.15);
}

.metric-card--attention-low strong {
  color: #9b6400;
}

.metric-card--attention-high {
  border-color: rgba(211, 65, 65, 0.5);
  box-shadow: 0 0 0 1px rgba(211, 65, 65, 0.2), 0 18px 42px rgba(211, 65, 65, 0.16);
}

.metric-card--attention-high strong {
  color: #ab2a2a;
}

.metric-card--gauge {
  display: grid;
  align-content: start;
}

.gauge {
  position: relative;
  width: min(210px, 100%);
  aspect-ratio: 2 / 1;
  margin-top: 0.9rem;
  overflow: hidden;
}

.gauge__track {
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background:
    conic-gradient(
      from 270deg at 50% 100%,
      #d48b00 0deg 58deg,
      #1f9a5d 58deg 121deg,
      #d34141 121deg 180deg,
      transparent 180deg 360deg
    );
}

.gauge__track::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 76%;
  border-radius: 999px 999px 0 0;
  background: var(--surface);
}

.gauge__needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 82%;
  border-radius: 999px;
  background: #0c1b3d;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(-90deg);
  transition: transform 0.7s ease;
  z-index: 2;
}

.gauge__hub {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #0c1b3d;
  transform: translate(-50%, 50%);
  z-index: 3;
}

.gauge__labels {
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0.25rem;
  display: flex;
  justify-content: space-between;
  color: #0c1b3d;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  z-index: 4;
  text-shadow:
    0 1px 0 #fff,
    1px 0 0 #fff,
    0 -1px 0 #fff,
    -1px 0 0 #fff;
}

.panel-card {
  padding: 1.25rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.panel-card__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  min-width: 0;
}

.panel-card__header > * {
  min-width: 0;
}

.panel-card__header--stack {
  align-items: start;
}

.panel-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: 65ch;
  overflow-wrap: anywhere;
}

.list-search {
  display: flex;
  gap: 0.75rem;
  width: min(460px, 100%);
}

.list-search input,
.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-alt);
  padding: 0.75rem 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  color: var(--text);
}

.list-search input:focus,
.form-control:focus {
  outline: 0;
  border-color: rgba(26, 71, 201, 0.5);
  box-shadow: 0 0 0 4px rgba(26, 71, 201, 0.1);
  background: #fff;
}

.form-control--textarea {
  resize: vertical;
}

.table-shell {
  max-width: 100%;
  overflow-x: auto;
}

.athlete-table {
  width: 100%;
  border-collapse: collapse;
}

.athlete-table thead th {
  background: #edf2fb;
  color: #5f6876;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 1.05rem;
}

.athlete-table tbody td {
  border-top: 1px solid rgba(194, 198, 212, 0.35);
  padding: 1rem 1.05rem;
  vertical-align: middle;
}

.athlete-table__actions-head,
.athlete-table__actions {
  text-align: right;
}

.athlete-table__actions {
  white-space: nowrap;
}

.athlete-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.athlete-identity strong {
  display: block;
  font-size: 0.95rem;
}

.athlete-identity span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.athlete-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 4px;
  background: #dce8ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #e8f0ff;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #203150;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field-error {
  color: #b42318;
  font-size: 0.78rem;
}

.field-help {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.athlete-form {
  display: grid;
  gap: 1.2rem;
}

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

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

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.button {
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, #1a47c9 0%, #2d5ee0 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 71, 201, 0.25);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-ghost {
  background: var(--surface-alt);
  color: var(--text);
}

.button-small {
  padding: 0.55rem 0.8rem;
}

.empty-state {
  padding: 2.4rem 1rem;
  text-align: center;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  max-width: 38ch;
}

.empty-state--compact {
  padding: 1.5rem 1rem;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-chip.is-active {
  background: #0c1b3d;
  border-color: #0c1b3d;
  color: #fff;
}

.tab-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.tab-nav__item.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.detail-grid--single {
  grid-template-columns: 1fr;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.week-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.week-chart__item {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
}

.week-chart__bar-shell {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: end;
  padding: 0.55rem;
  border-radius: 8px;
  background: #f3f7ff;
  border: 1px solid var(--border);
}

.week-chart__bar {
  width: 100%;
  min-height: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7fa7ff 0%, #1a47c9 100%);
}

.week-chart__bar--ok {
  background: linear-gradient(180deg, #8ce4b0 0%, #1f9a5d 100%);
}

.week-chart__bar--low {
  background: linear-gradient(180deg, #ffd88b 0%, #d48b00 100%);
}

.week-chart__bar--high {
  background: linear-gradient(180deg, #ffb1b1 0%, #d34141 100%);
}

.week-chart__bar--muted {
  background: linear-gradient(180deg, #d7dfea 0%, #90a1bb 100%);
}

.week-chart__item strong,
.week-chart__item span {
  text-align: center;
}

.load-chart {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.load-chart--interactive {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.load-chart--interactive canvas {
  width: 100% !important;
  height: 300px !important;
}

.load-chart__svg {
  width: 100%;
  height: 260px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.load-chart__axis {
  stroke: #8ea0bb;
  stroke-width: 0.45;
}

.load-chart__grid {
  stroke: #dbe4f0;
  stroke-width: 0.28;
  stroke-dasharray: 2 2;
}

.load-chart__bar {
  fill: #7fa7ff;
}

.load-chart__bar--ok {
  fill: #35ad72;
}

.load-chart__bar--low {
  fill: #d48b00;
}

.load-chart__bar--high {
  fill: #d34141;
}

.load-chart__bar--muted {
  fill: #9aabc4;
}

.load-chart__line {
  fill: none;
  stroke: #0c1b3d;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.load-chart__point {
  fill: #0c1b3d;
  stroke: #fff;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.load-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.load-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.load-chart__key {
  display: inline-block;
  width: 0.85rem;
  height: 0.45rem;
  border-radius: 999px;
}

.load-chart__key--bar {
  background: #35ad72;
}

.load-chart__key--line {
  height: 0.18rem;
  background: #0c1b3d;
}

.load-chart__ticks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 0.5rem;
}

.load-chart__ticks div {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.load-chart__ticks strong {
  color: #0d2348;
  font-size: 0.88rem;
}

.load-chart__ticks span {
  color: var(--muted);
  font-size: 0.78rem;
}

.acwr-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  min-width: 0;
  max-width: 100%;
}

.compare-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
  overflow-wrap: anywhere;
}

.compare-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.compare-card strong {
  display: block;
  margin-top: 0.45rem;
  color: #0d2348;
  line-height: 1.5;
}

.compare-card small {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.5;
}

.compare-card--compact strong {
  font-size: 1.1rem;
}

.attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}

.attention-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-left: 5px solid #90a1bb;
  border-radius: 8px;
  background: #f8fbff;
}

.attention-card--high {
  border-left-color: #d34141;
  background: #fff8f8;
}

.attention-card--low {
  border-left-color: #d48b00;
  background: #fffaf0;
}

.attention-card--muted {
  border-left-color: #90a1bb;
}

.attention-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.attention-card__head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.attention-card__head strong {
  display: block;
  margin-top: 0.3rem;
  color: #0d2348;
  font-size: 1rem;
}

.attention-card__head b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #0c1b3d;
  color: #fff;
}

.attention-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #203150;
  font-size: 0.82rem;
  line-height: 1.45;
}

.athlete-attention {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(144, 161, 187, 0.45);
  border-left: 5px solid #90a1bb;
  border-radius: 8px;
  background: #f8fbff;
}

.athlete-attention--low {
  border-color: rgba(212, 139, 0, 0.38);
  border-left-color: #d48b00;
  background: #fffaf0;
  box-shadow: 0 0 24px rgba(212, 139, 0, 0.14);
}

.athlete-attention--high {
  border-color: rgba(211, 65, 65, 0.42);
  border-left-color: #d34141;
  background: #fff8f8;
  box-shadow: 0 0 24px rgba(211, 65, 65, 0.16);
}

.athlete-attention__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.athlete-attention__head span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.athlete-attention__head strong {
  display: block;
  margin-top: 0.25rem;
  color: #0d2348;
  font-size: 1.2rem;
}

.attention-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #90a1bb;
}

.attention-dot--low {
  background: #d48b00;
  box-shadow: 0 0 0 6px rgba(212, 139, 0, 0.14), 0 0 24px rgba(212, 139, 0, 0.4);
}

.attention-dot--high {
  background: #d34141;
  box-shadow: 0 0 0 6px rgba(211, 65, 65, 0.14), 0 0 24px rgba(211, 65, 65, 0.4);
}

.athlete-attention__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.athlete-attention__reasons span {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #203150;
  font-size: 0.78rem;
  font-weight: 700;
}

.load-action-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.form-section {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}

.form-section + .form-section {
  margin-top: 1rem;
}

.form-section__header {
  display: grid;
  gap: 0.25rem;
}

.form-section__header strong {
  color: #0d2348;
  font-size: 0.95rem;
}

.form-section__header span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.mini-definition-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.mini-definition-list div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(221, 228, 240, 0.85);
}

.mini-definition-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mini-definition-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mini-definition-list dd {
  margin: 0;
  color: #0d2348;
  font-weight: 600;
  line-height: 1.45;
}

.acwr-entry {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}

.acwr-entry__head {
  display: grid;
  gap: 0.2rem;
}

.acwr-entry__head strong {
  color: #0d2348;
}

.acwr-entry__head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.acwr-entry__table {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.acwr-entry__row {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(160px, 0.9fr);
  gap: 0;
  background: #fff;
}

.acwr-entry__row > div {
  padding: 0.9rem 0.85rem;
}

.acwr-entry__row--head {
  background: #edf2fb;
  color: #5f6876;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.acwr-entry__label {
  display: flex;
  align-items: center;
  color: #0d2348;
  font-weight: 600;
}

.acwr-entry__field {
  display: grid;
  align-content: start;
}

.acwr-entry__status {
  display: grid;
  gap: 0.35rem;
  align-content: center;
}

.acwr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.acwr-pill--muted {
  background: #edf2f7;
  color: #5f6876;
}

.acwr-pill--ok {
  background: #e2f7ea;
  color: #167847;
}

.acwr-pill--low {
  background: #fff3d6;
  color: #9b6400;
}

.acwr-pill--high {
  background: #fde7e7;
  color: #ab2a2a;
}

.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1500;
}

.app-modal.is-open {
  display: flex;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 27, 61, 0.5);
}

.app-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15, 29, 53, 0.18);
  overflow: hidden;
}

.app-modal--wide .app-modal__dialog {
  width: min(1040px, calc(100vw - 2rem));
}

.app-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 2rem);
  min-height: 0;
}

.modal-content.athlete-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-modal__header,
.app-modal__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #f8fbff;
}

.app-modal__header {
  border-bottom: 1px solid var(--border);
}

.app-modal__footer {
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.app-modal__body {
  padding: 1.1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.load-modal-body {
  max-height: none;
}

.app-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 4px;
  background: #edf2fb;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.message-stack {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 1.5rem));
  z-index: 2000;
  display: grid;
  gap: 0.75rem;
}

.message-stack .alert {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(216, 225, 219, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(20, 40, 29, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.message-stack .alert.is-dismissing {
  opacity: 0;
  transform: translateY(-0.5rem);
}

.message-stack .alert-success {
  background: rgba(15, 52, 120, 0.92);
  color: #e8f0ff;
  border-color: rgba(26, 71, 201, 0.9);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0.75rem 0 0;
}

.auth-card input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-alt);
  padding: 0.75rem 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  color: var(--text);
}

.profile-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card .card-body {
  padding: 1.25rem;
}

.profile-card .form-label {
  color: #203150;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-definition {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.profile-definition div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(221, 228, 240, 0.85);
}

.profile-definition div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-definition dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-definition dd {
  margin: 0;
  color: #0d2348;
  font-weight: 600;
  line-height: 1.45;
}

.invalid-copy {
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.78rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .shell-layout {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .shell-main {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .shell-sidebar {
    display: none !important;
  }

  .page-hero,
  .panel-card__header,
  .list-search,
  .form-actions,
  .shell-topbar,
  .app-modal__header,
  .app-modal__footer {
    display: grid;
  }

  .shell-topbar__actions,
  .form-actions,
  .load-action-row {
    justify-content: stretch;
  }

  .compare-grid,
  .form-grid--triple,
  .form-grid--four,
  .acwr-entry__row {
    grid-template-columns: 1fr;
  }
}
