@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #050806;
  --panel: #101512;
  --panel-2: #151b17;
  --panel-3: #1b221e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(41, 242, 124, 0.22);
  --text: #f4f7f5;
  --muted: #8e9a92;
  --green: #29f27c;
  --green-2: #65ff8d;
  --green-soft: rgba(41, 242, 124, 0.12);
  --red: #ff4d57;
  --red-soft: rgba(255, 77, 87, 0.12);
  --yellow: #f4b740;
  --blue: #5aa7ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --glow: 0 0 0 1px rgba(41, 242, 124, 0.16), 0 20px 40px rgba(0, 0, 0, 0.32);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 15px;
  --radius-sm: 12px;
  --sidebar-width: 248px;
  --content-max: 1380px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  overflow-x: clip;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(41, 242, 124, 0.08), transparent 30%),
    radial-gradient(circle at left center, rgba(90, 167, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #060a08 0%, #050806 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 100vh;
  padding: 1.15rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(11, 16, 14, 0.96), rgba(6, 10, 8, 0.98)),
    radial-gradient(circle at top left, rgba(41, 242, 124, 0.08), transparent 25%);
  border-right: 1px solid var(--border);
  z-index: 20;
}

.sidebar__top,
.sidebar__bottom {
  display: grid;
  gap: 1rem;
}

.sidebar-close,
.mobile-bar,
.sidebar-overlay {
  display: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 34px;
}

.brand-lockup.logo-unavailable {
  gap: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-lockup.logo-unavailable .brand-logo {
  display: none;
}

.promo-card.logo-unavailable .promo-card__logo {
  display: none;
}

.logo-missing-note {
  display: none;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-lockup.logo-unavailable .logo-missing-note,
.promo-card.logo-unavailable .logo-missing-note {
  display: inline-flex;
}

.logo-missing-note--promo {
  width: fit-content;
}

.brand-wordmark {
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.78rem 0.88rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #d7ddd9;
  text-align: left;
  background: transparent;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.nav-item.is-active {
  border-color: rgba(41, 242, 124, 0.45);
  background: linear-gradient(180deg, rgba(20, 49, 29, 0.9), rgba(14, 31, 20, 0.96));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(41, 242, 124, 0.1);
}

.nav-item.is-active .icon {
  color: var(--green);
}

.promo-card,
.profile-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 18, 16, 0.98), rgba(11, 16, 14, 0.98)),
    radial-gradient(circle at top left, rgba(41, 242, 124, 0.08), transparent 30%);
  box-shadow: var(--shadow);
}

.promo-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.promo-card__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.promo-card__copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #eef2ef;
}

.promo-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.profile-card__avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.profile-card__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.profile-card__text strong {
  font-size: 0.92rem;
}

.profile-card__text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-card__chevron {
  margin-left: auto;
  color: var(--muted);
  transform: rotate(90deg);
}

.content-shell {
  width: min(100%, var(--content-max));
  padding: 1rem clamp(0.8rem, 1.4vw, 1.2rem) 1.2rem;
  margin: 0 auto;
}

.screen {
  display: none;
  animation: screen-in 220ms ease;
}

.screen.is-active {
  display: block;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.screen-title-group h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.35rem, 0.9vw + 0.92rem, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.screen-title-group p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.surface-pill,
.secondary-button,
.filter-chip,
.segment-button,
.action-button,
.callout-button,
.mobile-bar__button {
  border-radius: 16px;
  border: 1px solid var(--border);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.surface-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 192px;
  padding: 0.72rem 0.88rem;
  background: rgba(12, 17, 15, 0.9);
  color: #f6faf7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
}

.surface-pill span:last-child {
  margin-left: auto;
}

.surface-pill:hover,
.surface-pill:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible,
.segment-button:hover,
.segment-button:focus-visible,
.action-button:hover,
.action-button:focus-visible,
.callout-button:hover,
.callout-button:focus-visible,
.mobile-bar__button:hover,
.mobile-bar__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  outline: none;
}

button:disabled,
.nav-item.is-disabled,
.promo-card__link.is-disabled,
.filter-chip.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

button:disabled:hover,
button:disabled:focus-visible,
.nav-item.is-disabled:hover,
.nav-item.is-disabled:focus-visible,
.promo-card__link.is-disabled:hover,
.promo-card__link.is-disabled:focus-visible,
.filter-chip.is-disabled:hover,
.filter-chip.is-disabled:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.88rem;
  background: rgba(12, 17, 15, 0.9);
  color: #ffffff;
  font-size: 0.86rem;
}

.overview-kpis,
.athlete-summary-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.overview-kpis {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.stat-card,
.panel-card,
.summary-card,
.callout-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.98), rgba(9, 13, 11, 0.98)),
    radial-gradient(circle at top left, rgba(41, 242, 124, 0.08), transparent 35%);
  box-shadow: var(--shadow);
}

.stat-card,
.summary-card {
  display: flex;
  gap: 1rem;
  padding: 0.95rem;
  min-height: 104px;
}

.stat-card::after,
.summary-card::after,
.panel-card::after,
.callout-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 242, 124, 0.24), transparent);
  opacity: 0.4;
}

.stat-card__icon,
.summary-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stat-card--green .stat-card__icon,
.summary-card--green .summary-card__icon {
  color: var(--green);
  background: rgba(41, 242, 124, 0.14);
}

.stat-card--red,
.summary-card--red {
  border-color: rgba(255, 77, 87, 0.4);
}

.stat-card--red .stat-card__icon,
.summary-card--red .summary-card__icon {
  color: var(--red);
  background: rgba(255, 77, 87, 0.12);
}

.stat-card__icon .icon,
.summary-card__icon .icon {
  width: 1.55rem;
  height: 1.55rem;
}

.stat-card__icon--image,
.summary-card__icon--image {
  background: transparent;
  box-shadow: none;
}

.card-status-icon {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.18));
}

.stat-card__content,
.summary-card__content {
  display: grid;
  align-content: flex-start;
  gap: 0.22rem;
}

.stat-card__label,
.summary-card__label {
  color: #dfe7e1;
  font-size: 0.78rem;
}

.stat-card__value,
.summary-card__value {
  font-size: clamp(1.18rem, 0.75vw + 0.92rem, 1.72rem);
  font-weight: 800;
  line-height: 1;
}

.stat-card__meta,
.summary-card__meta {
  color: var(--muted);
  font-size: 0.74rem;
}

.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.95fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.team-card {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.98), rgba(9, 13, 11, 0.98)),
    radial-gradient(circle at top left, rgba(41, 242, 124, 0.08), transparent 35%);
  box-shadow: var(--shadow);
}

.team-card.is-selected {
  border-color: rgba(41, 242, 124, 0.42);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(41, 242, 124, 0.16);
}

.team-card__header,
.team-card__footer,
.team-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.team-card__header {
  align-items: flex-start;
}

.team-card__title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.04rem;
  line-height: 1.1;
}

.team-card__subtitle,
.team-card__hint,
.team-card__stat-label {
  color: var(--muted);
  font-size: 0.78rem;
}

.team-card__subtitle {
  margin: 0.3rem 0 0;
}

.team-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border-radius: 999px;
  background: rgba(41, 242, 124, 0.12);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.team-card__stats {
  align-items: stretch;
}

.team-card__stat {
  flex: 1;
  min-width: 0;
  padding: 0.78rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.team-card__stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

.team-card__footer {
  align-items: center;
}

.overview-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 0.8fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.overview-bottom-grid--page {
  margin-top: 0.25rem;
}

.panel-card {
  padding: 0.95rem;
}

.panel-card__header,
.table-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.panel-card__title,
.table-card__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-card__subtitle,
.table-card__subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  color: #edf4ee;
  font-size: 0.84rem;
}

.filter-chip .icon {
  color: var(--muted);
}

.chart-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.75rem 0.75rem 0.35rem;
  background: linear-gradient(180deg, rgba(11, 16, 14, 0.7), rgba(8, 11, 9, 0.9));
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.55rem;
  color: #dce5de;
  font-size: 0.76rem;
}

.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-key::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: currentColor;
}

.legend-key--green {
  color: var(--green);
}

.legend-key--red {
  color: var(--red);
}

.trend-chart {
  width: 100%;
  height: auto;
}

.trend-chart__grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 4 6;
}

.trend-chart__axis {
  stroke: rgba(255, 255, 255, 0.16);
}

.trend-chart__label,
.trend-chart__value {
  fill: var(--muted);
  font-size: 11px;
  font-family: "Manrope", sans-serif;
}

.trend-chart__value--green {
  fill: var(--green);
  font-weight: 800;
}

.trend-chart__value--red {
  fill: var(--red);
  font-weight: 800;
}

.trend-chart__area--green {
  fill: rgba(41, 242, 124, 0.14);
}

.trend-chart__area--red {
  fill: rgba(255, 77, 87, 0.1);
}

.trend-chart__line--green,
.trend-chart__point--green {
  stroke: var(--green);
  fill: var(--green);
}

.trend-chart__line--red,
.trend-chart__point--red {
  stroke: var(--red);
  fill: var(--red);
}

.trend-chart__line--green,
.trend-chart__line--red {
  stroke-width: 3;
  fill: none;
  filter: drop-shadow(0 0 16px rgba(41, 242, 124, 0.12));
}

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

.attention-table-wrap {
  overflow: auto;
  max-height: 32rem;
}

.attention-table th,
.attention-table td {
  padding: 0.42rem 0.16rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-size: 0.68rem;
  line-height: 1.18;
}

.attention-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(10, 14, 12, 0.96);
}

.attention-table th {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.attention-table__status {
  width: 5rem;
}

.attention-table__action {
  width: 1%;
  padding-left: 0.85rem;
}

.attention-table thead th:last-child {
  padding-left: 0.85rem;
}

.attention-table .status-badge--image-only,
.attention-table .result-pill--image-only {
  padding: 0.32rem;
  min-width: 2.7rem;
}

.attention-table .status-badge--image-only .status-visual__image,
.attention-table .result-pill--image-only .status-visual__image {
  width: 1.8rem;
  height: 1.8rem;
}

.attention-table .action-button--compact {
  padding: 0.34rem 0.54rem;
  font-size: 0.58rem;
  border-radius: 12px;
  white-space: nowrap;
}

.table-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.55rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green);
  font-weight: 700;
}

.inline-link .icon {
  width: 1rem;
  height: 1rem;
}

.status-badge,
.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: fit-content;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.status-badge .icon {
  width: 0.7rem;
  height: 0.7rem;
  fill: currentColor;
  stroke: none;
}

.status-visual__image {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.status-badge--compact,
.result-pill--compact {
  gap: 0.28rem;
  padding: 0.22rem 0.38rem;
  font-size: 0.58rem;
}

.status-badge--image-only,
.result-pill--image-only {
  justify-content: center;
  gap: 0;
  padding: 0.18rem;
  min-width: 1.8rem;
  line-height: 0;
}

.result-pill--high,
.status-badge--high {
  color: #ff8f95;
  background: var(--red-soft);
  border-color: rgba(255, 77, 87, 0.36);
}

.result-pill--low,
.status-badge--low {
  color: #75ffab;
  background: var(--green-soft);
  border-color: rgba(41, 242, 124, 0.24);
}

.result-pill--warning,
.status-badge--warning {
  color: #ffe78f;
  background: rgba(244, 183, 64, 0.14);
  border-color: rgba(244, 183, 64, 0.34);
}

.result-pill--neutral {
  color: #a9c7ff;
  background: rgba(90, 167, 255, 0.12);
  border-color: rgba(90, 167, 255, 0.24);
}

.status-badge--neutral {
  color: #96bfff;
  background: rgba(90, 167, 255, 0.12);
  border-color: rgba(90, 167, 255, 0.24);
}

.task-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.task-breakdown-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.task-breakdown-card__title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
}

.task-breakdown-card__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.task-breakdown-card__legend strong {
  color: #ffffff;
}

.mini-progress {
  overflow: hidden;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
}

.mini-progress__segment {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
}

.mini-progress__segment--red {
  background: linear-gradient(180deg, rgba(255, 77, 87, 0.96), rgba(224, 57, 68, 0.94));
}

.mini-progress__segment--green {
  background: linear-gradient(180deg, rgba(41, 242, 124, 0.96), rgba(29, 210, 104, 0.92));
}

.task-breakdown-card__total {
  color: var(--muted);
  font-size: 0.74rem;
}

.donut-shell,
.gauge-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.ring-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 var(--chart-green-stop),
    var(--red) var(--chart-green-stop) var(--chart-red-stop),
    rgba(255, 255, 255, 0.08) var(--chart-red-stop) 100%
  );
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.32);
}

.ring-chart::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at top, rgba(19, 28, 23, 0.95), rgba(8, 12, 9, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ring-chart__center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  text-align: center;
}

.ring-chart__center strong {
  font-size: 1.45rem;
  line-height: 1;
}

.ring-chart__center span {
  color: var(--muted);
  font-size: 0.74rem;
}

.ring-chart--compliance {
  background: conic-gradient(
    var(--green) 0 var(--chart-green-stop),
    rgba(255, 255, 255, 0.08) var(--chart-green-stop) 100%
  );
}

.distribution-list,
.compliance-copy {
  display: grid;
  gap: 0.7rem;
}

.distribution-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #dce5de;
}

.distribution-item__swatch {
  width: 14px;
  height: 14px;
  border-radius: 6px;
}

.distribution-item__value {
  font-size: 0.9rem;
  font-weight: 800;
}

.distribution-item__label {
  color: var(--muted);
  font-size: 0.74rem;
}

.callout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.callout-card__body {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.callout-card__icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(14, 37, 22, 0.9);
  box-shadow: 0 0 0 1px rgba(41, 242, 124, 0.18), 0 0 30px rgba(41, 242, 124, 0.12);
}

.callout-card__icon .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.callout-card__text h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 0.65vw + 0.9rem, 1.32rem);
}

.callout-card__text p {
  margin: 0.24rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.callout-button,
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 0.92rem;
  font-weight: 800;
  font-size: 0.76rem;
}

.action-button--compact {
  padding: 0.44rem 0.62rem;
  font-size: 0.64rem;
  line-height: 1.18;
  white-space: normal;
}

.callout-button {
  min-width: 194px;
  background: transparent;
  color: var(--green);
  border-color: rgba(41, 242, 124, 0.38);
}

.action-button--primary {
  color: #062f13;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  border-color: rgba(41, 242, 124, 0.42);
}

.action-button--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
}

.filters-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(180px, auto));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.search-field,
.segment-group {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(12, 17, 15, 0.92);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
}

.search-field .icon {
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-field input::placeholder {
  color: var(--muted);
}

.segment-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  min-height: 52px;
}

.segment-group__label {
  padding-left: 0.32rem;
  color: #e8eeea;
  font-size: 0.76rem;
  white-space: nowrap;
}

.segment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.segment-button {
  padding: 0.58rem 0.82rem;
  background: transparent;
  color: #d3ddd6;
  white-space: nowrap;
  font-size: 0.76rem;
}

.segment-button.is-active {
  background: linear-gradient(180deg, rgba(20, 49, 29, 0.94), rgba(14, 31, 20, 0.94));
  border-color: rgba(41, 242, 124, 0.3);
  color: #ffffff;
}

.table-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.98), rgba(8, 11, 9, 0.98)),
    radial-gradient(circle at top left, rgba(41, 242, 124, 0.05), transparent 30%);
  box-shadow: var(--shadow);
}

.table-card__header {
  padding: 0.95rem 0.95rem 0;
}

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

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

.athlete-table thead th {
  padding: 0.82rem 0.95rem;
  color: #dce5de;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.athlete-sort-button .icon {
  width: 0.88rem;
  height: 0.88rem;
  opacity: 0.58;
  transform: rotate(90deg);
}

.athlete-sort-button:hover,
.athlete-sort-button:focus-visible,
.athlete-sort-button.is-active {
  color: #ffffff;
  outline: none;
}

.athlete-sort-button:hover .icon,
.athlete-sort-button:focus-visible .icon,
.athlete-sort-button.is-active .icon {
  opacity: 1;
  color: var(--green);
}

.athlete-table tbody td {
  padding: 0.56rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  font-size: 0.74rem;
}

.athlete-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

.athlete-table tbody tr:last-child td {
  border-bottom: 0;
}

.athlete-table .status-badge--compact.status-badge--image-only,
.athlete-table .result-pill--compact.result-pill--image-only,
.athlete-table .status-badge--image-only,
.athlete-table .result-pill--image-only {
  padding: 0.5rem;
  min-width: 3.35rem;
}

.athlete-table .status-badge--compact.status-badge--image-only .status-visual__image,
.athlete-table .result-pill--compact.result-pill--image-only .status-visual__image,
.athlete-table .status-badge--image-only .status-visual__image,
.athlete-table .result-pill--image-only .status-visual__image {
  width: 1.75rem;
  height: 1.75rem;
}

.uid-cell {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f7f5;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(41, 242, 124, 0.38);
  text-underline-offset: 0.18rem;
}

.table-link-button:hover,
.table-link-button:focus-visible {
  color: var(--green);
  text-decoration-color: var(--green);
  outline: none;
}

.table-link-button--compact {
  font-size: 0.72rem;
}

.notes-input {
  width: 100%;
  min-width: 180px;
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  outline: none;
  font-size: 0.76rem;
}

.notes-input:focus {
  border-color: rgba(41, 242, 124, 0.36);
  box-shadow: 0 0 0 4px rgba(41, 242, 124, 0.08);
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.95rem 0.95rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pagination__button,
.pagination__page {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.pagination__button {
  color: inherit;
}

.pagination__page.is-active {
  background: linear-gradient(180deg, rgba(20, 49, 29, 0.94), rgba(14, 31, 20, 0.94));
  border-color: rgba(41, 242, 124, 0.3);
  color: #ffffff;
}

.pagination__button.is-disabled,
.pagination__button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.empty-state {
  padding: 1.5rem 1rem 1.8rem;
  text-align: center;
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  width: min(360px, calc(100vw - 2rem));
  z-index: 40;
}

.toast {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(41, 242, 124, 0.28);
  background: rgba(10, 16, 13, 0.96);
  color: #f7fbf8;
  box-shadow: var(--glow);
  animation: toast-in 200ms ease;
}

.toast strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 4, 0.72);
  backdrop-filter: blur(10px);
  z-index: 60;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-card {
  width: min(100%, 460px);
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 19, 16, 0.98), rgba(8, 12, 10, 0.98)),
    radial-gradient(circle at top left, rgba(41, 242, 124, 0.08), transparent 35%);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.modal-card--wide {
  width: min(100%, 1040px);
}

.modal-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal-card__title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
}

.modal-card__subtitle {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.modal-card__close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.modal-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.modal-field__label {
  color: #e6ede8;
  font-size: 0.78rem;
  font-weight: 700;
}

.modal-field__input {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.modal-field__input:focus {
  border-color: rgba(41, 242, 124, 0.34);
  box-shadow: 0 0 0 4px rgba(41, 242, 124, 0.08);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.modal-actions--split {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.athlete-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.35fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.athlete-detail-panel {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.athlete-summary-card,
.athlete-status-card,
.athlete-detail-item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.athlete-summary-card {
  padding: 1rem;
}

.athlete-summary-card__eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.athlete-summary-card__uid {
  margin-top: 0.45rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.athlete-summary-card__team {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.athlete-status-card {
  padding: 1rem;
}

.athlete-status-card__label {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.athlete-status-card__main {
  margin-top: 0.7rem;
}

.athlete-status-card__hint {
  margin-top: 0.72rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.athlete-status-toggle {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.athlete-status-toggle:focus-visible {
  outline: none;
}

.athlete-status-toggle .status-badge {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.athlete-status-toggle:hover .status-badge,
.athlete-status-toggle:focus-visible .status-badge,
.athlete-status-toggle.is-expanded .status-badge {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 77, 87, 0.18), 0 12px 28px rgba(255, 77, 87, 0.12);
}

.athlete-status-card__subgrid,
.assessment-history-item__subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.athlete-substatus {
  padding: 0.78rem 0.82rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-substatus--icon-only {
  display: grid;
  justify-items: center;
  text-align: center;
}

.athlete-substatus__label {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.athlete-substatus__value {
  margin-top: 0.52rem;
}

.athlete-substatus--icon-only .athlete-substatus__value {
  margin-top: 0.42rem;
}

.athlete-substatus--icon-only .status-badge--image-only,
.athlete-substatus--icon-only .result-pill--image-only {
  padding: 0.4rem;
  min-width: 2.6rem;
}

.athlete-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.athlete-detail-item {
  padding: 0.82rem 0.88rem;
}

.athlete-detail-item__label {
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 0.38rem;
}

.athlete-detail-item__value {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
}

.athlete-detail-sectionhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.athlete-detail-sectionhead__title {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.athlete-detail-sectionhead__subtitle {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.assessment-history {
  display: grid;
  gap: 0.8rem;
  max-height: 29rem;
  overflow: auto;
  padding-right: 0.18rem;
}

.assessment-history-item {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.assessment-history-item--latest {
  border-color: rgba(41, 242, 124, 0.22);
  box-shadow: 0 0 0 1px rgba(41, 242, 124, 0.08) inset;
}

.assessment-history-item__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.assessment-history-item__date {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.assessment-history-item__caption {
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.assessment-history-item__overall .status-badge--image-only,
.assessment-history-item__overall .result-pill--image-only {
  min-width: 4.25rem;
  justify-content: center;
}

.athlete-detail-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.athlete-detail-nav__position {
  color: var(--muted);
  font-size: 0.76rem;
  min-width: 3.9rem;
  text-align: center;
}

.status-badge--large,
.result-pill--large {
  gap: 0.55rem;
  padding: 0.62rem 0.92rem;
  font-size: 0.9rem;
}

.status-badge--large .status-visual__image,
.result-pill--large .status-visual__image {
  width: 1.25rem;
  height: 1.25rem;
}

.status-badge--hero,
.result-pill--hero {
  padding: 0.9rem 1.25rem;
  font-size: 1.12rem;
  gap: 0.72rem;
}

.status-badge--hero .status-visual__image,
.result-pill--hero .status-visual__image {
  width: 1.65rem;
  height: 1.65rem;
}

@media (min-width: 1121px) {
  body {
    overflow: hidden;
  }

  .content-shell {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .screen.is-active {
    height: 100%;
    overflow: hidden;
  }

  #viewOverview.is-active {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: start;
  }

  #viewTaskBreakdown.is-active,
  #viewAthletes.is-active {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
  }

  #viewOverview .overview-main-grid,
  #viewOverview .panel-card {
    min-height: 0;
  }

  #viewOverview .panel-card {
    display: flex;
    flex-direction: column;
  }

  #viewOverview .chart-shell,
  #viewOverview .attention-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
  }

  #viewOverview .attention-table-wrap {
    overflow: auto;
  }

  #viewAthletes .table-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #viewTaskBreakdown .overview-bottom-grid {
    align-self: start;
  }

  #viewAthletes .table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
}

@media (max-height: 920px) and (min-width: 1121px) {
  :root {
    --sidebar-width: 232px;
  }

  body {
    font-size: 13px;
  }

  .sidebar {
    padding: 0.95rem 0.85rem 0.85rem;
  }

  .promo-card {
    padding: 0.82rem;
  }

  .promo-card__logo {
    width: 48px;
    height: 48px;
  }

  .promo-card__copy {
    font-size: 0.82rem;
  }

  .nav-item {
    padding: 0.66rem 0.76rem;
  }

  .content-shell {
    padding: 0.8rem 0.95rem 0.95rem;
  }

  .screen-header {
    margin-bottom: 0.72rem;
  }

  .screen-title-group h1 {
    font-size: clamp(1.35rem, 0.85vw + 0.95rem, 2rem);
  }

  .screen-title-group p {
    font-size: 0.84rem;
  }

  .overview-kpis,
  .athlete-summary-grid,
  .overview-main-grid,
  .overview-bottom-grid,
  .filters-row {
    gap: 0.58rem;
    margin-bottom: 0.58rem;
  }

  .stat-card,
  .summary-card {
    min-height: 88px;
    padding: 0.78rem;
  }

  .stat-card__icon,
  .summary-card__icon {
    width: 42px;
    height: 42px;
  }

  .stat-card__value,
  .summary-card__value {
    font-size: 1.2rem;
  }

  .panel-card,
  .table-card__header {
    padding: 0.8rem;
  }

  .panel-card__header,
  .table-card__header {
    margin-bottom: 0.58rem;
  }

  .chart-shell {
    padding: 0.62rem 0.62rem 0.24rem;
  }

  .attention-table th,
  .attention-table td {
    padding-top: 0.34rem;
    padding-bottom: 0.34rem;
  }

  .attention-table th,
  .attention-table td,
  .athlete-table thead th,
  .athlete-table tbody td {
    padding-top: 0.44rem;
    padding-bottom: 0.44rem;
    font-size: 0.76rem;
  }

  .action-button,
  .callout-button,
  .secondary-button,
  .surface-pill,
  .filter-chip,
  .segment-button,
  .notes-input {
    font-size: 0.76rem;
  }

  .ring-chart {
    width: 112px;
    height: 112px;
  }

  .ring-chart::before {
    inset: 13px;
  }

  .callout-card {
    padding: 0.82rem;
  }

  .callout-card__icon {
    width: 50px;
    height: 50px;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1360px) {
  .overview-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-bottom-grid > :last-child {
    grid-column: 1 / -1;
  }

  .filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: transform 200ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-bar,
  .sidebar-overlay {
    display: block;
  }

  .sidebar-close {
    justify-self: end;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    transition: opacity 180ms ease;
  }

  body.sidebar-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-bar__button {
    width: 48px;
    height: 48px;
    background: rgba(12, 17, 15, 0.92);
  }

  .content-shell {
    width: 100%;
  }

  .screen-header {
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-actions > * {
    flex: 1 1 220px;
  }

  .surface-pill,
  .secondary-button,
  .callout-button {
    min-width: 0;
  }

  .teams-grid,
  .overview-main-grid,
  .overview-bottom-grid,
  .filters-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .content-shell {
    padding: 0.9rem 0.9rem 1rem;
  }

  .mobile-bar {
    margin-bottom: 0.8rem;
  }

  .screen-header {
    gap: 0.7rem;
  }

  .screen-title-group h1 {
    font-size: clamp(1.18rem, 2.8vw, 1.62rem);
  }

  .screen-title-group p {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .surface-pill,
  .secondary-button,
  .filter-chip,
  .segment-button,
  .action-button,
  .callout-button,
  .notes-input {
    font-size: 0.74rem;
  }

  .surface-pill {
    padding: 0.68rem 0.8rem;
  }

  .summary-card {
    min-height: 0;
    padding: 0.82rem;
  }

  .summary-card__icon,
  .callout-card__icon {
    width: 44px;
    height: 44px;
  }

  .summary-card__value {
    font-size: 1.08rem;
  }

  .panel-card,
  .callout-card {
    padding: 0.82rem;
  }

  .panel-card__header,
  .table-card__header {
    margin-bottom: 0.6rem;
  }

  .athlete-table {
    min-width: 760px;
  }

  .athlete-table thead th,
  .athlete-table tbody td {
    padding-inline: 0.72rem;
  }

  .notes-input {
    min-width: 138px;
  }

  .table-footer,
  .pagination {
    flex-wrap: wrap;
  }

  .modal-card {
    padding: 0.9rem;
  }

  .modal-card--wide {
    width: min(100%, 880px);
  }
}

@media (max-width: 760px) {
  .content-shell {
    padding: 0.78rem 0.72rem 0.95rem;
  }

  .mobile-bar {
    gap: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .brand-lockup--mobile {
    min-width: 0;
  }

  .brand-lockup--mobile .brand-wordmark {
    font-size: 0.84rem;
  }

  .screen-title-group h1 {
    font-size: clamp(1.08rem, 5vw, 1.4rem);
  }

  .screen-title-group p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .screen-header,
  .table-footer,
  .callout-card {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 0.45rem;
  }

  .surface-pill,
  .secondary-button,
  .callout-button {
    width: 100%;
    min-width: 0;
  }

  .surface-pill,
  .secondary-button,
  .callout-button,
  .action-button,
  .filter-chip,
  .segment-button,
  .notes-input {
    font-size: 0.72rem;
  }

  .surface-pill,
  .secondary-button,
  .callout-button,
  .action-button {
    padding: 0.62rem 0.72rem;
  }

  .overview-kpis,
  .teams-grid,
  .athlete-summary-grid,
  .task-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 0;
    padding: 0.76rem;
    gap: 0.72rem;
  }

  .summary-card__icon {
    width: 40px;
    height: 40px;
  }

  .summary-card__value {
    font-size: 1.02rem;
  }

  .panel-card,
  .callout-card,
  .athlete-summary-card,
  .athlete-status-card,
  .athlete-detail-item,
  .assessment-history-item,
  .modal-card {
    padding: 0.78rem;
  }

  .panel-card__title,
  .table-card__title {
    font-size: 0.84rem;
  }

  .panel-card__subtitle,
  .table-card__subtitle,
  .modal-card__subtitle {
    font-size: 0.72rem;
  }

  .callout-card__body {
    align-items: flex-start;
  }

  .callout-card__icon {
    width: 46px;
    height: 46px;
  }

  .callout-card__icon .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .callout-card__text h2 {
    font-size: 0.92rem;
  }

  .callout-card__text p {
    font-size: 0.72rem;
  }

  .modal-actions--split,
  .athlete-detail-nav,
  .assessment-history-item__header {
    flex-direction: column;
    align-items: stretch;
  }

  .athlete-detail-grid,
  .athlete-detail-meta,
  .athlete-status-card__subgrid,
  .assessment-history-item__subgrid {
    grid-template-columns: 1fr;
  }

  .athlete-summary-card__uid {
    font-size: 1.2rem;
  }

  .athlete-detail-sectionhead {
    gap: 0.65rem;
  }

  .athlete-detail-sectionhead__title {
    font-size: 0.92rem;
  }

  .assessment-history-item__date {
    font-size: 0.9rem;
  }

  .athlete-detail-nav__position {
    min-width: 0;
    text-align: left;
  }

  .donut-shell,
  .gauge-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .filters-row {
    grid-template-columns: 1fr;
  }

  .athlete-table {
    min-width: 620px;
  }

  .athlete-table thead th,
  .athlete-table tbody td {
    padding: 0.48rem 0.6rem;
    font-size: 0.7rem;
  }

  .athlete-table .status-badge--compact.status-badge--image-only,
  .athlete-table .result-pill--compact.result-pill--image-only,
  .athlete-table .status-badge--image-only,
  .athlete-table .result-pill--image-only {
    padding: 0.38rem;
    min-width: 3rem;
  }

  .athlete-table .status-badge--compact.status-badge--image-only .status-visual__image,
  .athlete-table .result-pill--compact.result-pill--image-only .status-visual__image,
  .athlete-table .status-badge--image-only .status-visual__image,
  .athlete-table .result-pill--image-only .status-visual__image {
    width: 1.58rem;
    height: 1.58rem;
  }

  .notes-input {
    min-width: 128px;
    padding: 0.48rem 0.62rem;
  }

  .table-footer {
    padding: 0.72rem 0.8rem 0.85rem;
  }

  .pagination {
    width: 100%;
    justify-content: center;
  }

  .pagination__button,
  .pagination__page {
    width: 30px;
    height: 30px;
  }

  .attention-table th,
  .attention-table td {
    padding: 0.38rem 0.42rem;
    font-size: 0.64rem;
  }

  .attention-table .status-badge--image-only,
  .attention-table .result-pill--image-only {
    min-width: 2.5rem;
  }

  .attention-table .status-badge--image-only .status-visual__image,
  .attention-table .result-pill--image-only .status-visual__image {
    width: 1.52rem;
    height: 1.52rem;
  }

  .attention-table .action-button--compact {
    padding: 0.3rem 0.44rem;
    font-size: 0.54rem;
  }

  .segment-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.4rem;
  }

  .segment-group__label {
    padding-left: 0;
  }

  .segment-buttons {
    width: 100%;
  }

  .segment-button {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .content-shell {
    padding: 0.72rem 0.6rem 0.9rem;
  }

  .mobile-bar__button {
    width: 42px;
    height: 42px;
  }

  .brand-lockup--mobile {
    gap: 0.55rem;
  }

  .brand-lockup--mobile .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-lockup--mobile .brand-wordmark {
    font-size: 0.78rem;
  }

  .screen-title-group h1 {
    font-size: clamp(1rem, 6vw, 1.28rem);
  }

  .surface-pill,
  .secondary-button,
  .callout-button,
  .action-button,
  .filter-chip,
  .segment-button,
  .notes-input {
    font-size: 0.7rem;
  }

  .surface-pill,
  .secondary-button,
  .callout-button,
  .action-button {
    padding: 0.58rem 0.68rem;
    border-radius: 14px;
  }

  .summary-card {
    padding: 0.72rem;
  }

  .summary-card__icon {
    width: 38px;
    height: 38px;
  }

  .summary-card__label {
    font-size: 0.74rem;
  }

  .summary-card__meta {
    font-size: 0.68rem;
  }

  .panel-card,
  .callout-card {
    padding: 0.72rem;
    border-radius: 16px;
  }

  .callout-card__icon {
    width: 42px;
    height: 42px;
  }

  .callout-card__icon .icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .callout-card__text h2 {
    font-size: 0.88rem;
  }

  .athlete-table {
    min-width: 560px;
  }

  .athlete-table thead th,
  .athlete-table tbody td {
    padding: 0.44rem 0.52rem;
    font-size: 0.68rem;
  }

  .athlete-table .status-badge--compact.status-badge--image-only,
  .athlete-table .result-pill--compact.result-pill--image-only,
  .athlete-table .status-badge--image-only,
  .athlete-table .result-pill--image-only {
    padding: 0.34rem;
    min-width: 2.85rem;
  }

  .athlete-table .status-badge--compact.status-badge--image-only .status-visual__image,
  .athlete-table .result-pill--compact.result-pill--image-only .status-visual__image,
  .athlete-table .status-badge--image-only .status-visual__image,
  .athlete-table .result-pill--image-only .status-visual__image {
    width: 1.5rem;
    height: 1.5rem;
  }

  .notes-input {
    min-width: 112px;
  }

  .pagination__button,
  .pagination__page {
    width: 28px;
    height: 28px;
    font-size: 0.68rem;
  }

  .modal-card {
    padding: 0.72rem;
  }

  .modal-card__close {
    width: 36px;
    height: 36px;
  }

  .athlete-summary-card__uid {
    font-size: 1.08rem;
  }

  .assessment-history-item__date {
    font-size: 0.84rem;
  }

  .attention-table th,
  .attention-table td {
    padding: 0.34rem 0.38rem;
    font-size: 0.6rem;
  }

  .attention-table .status-badge--image-only,
  .attention-table .result-pill--image-only {
    min-width: 2.35rem;
  }

  .attention-table .status-badge--image-only .status-visual__image,
  .attention-table .result-pill--image-only .status-visual__image {
    width: 1.44rem;
    height: 1.44rem;
  }
}
