@font-face {
  font-family: "RobotoCondensed";
  src:
    local("Roboto Condensed"),
    local("RobotoCondensed"),
    url("./font/Roboto_Condensed/static/RobotoCondensed-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "RobotoCondensed";
  src:
    local("Roboto Condensed Medium"),
    local("RobotoCondensed-Medium"),
    url("./font/Roboto_Condensed/static/RobotoCondensed-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "RobotoCondensed";
  src:
    local("Roboto Condensed SemiBold"),
    local("RobotoCondensed-SemiBold"),
    url("./font/Roboto_Condensed/static/RobotoCondensed-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "RobotoCondensed";
  src:
    local("Roboto Condensed Bold"),
    local("RobotoCondensed-Bold"),
    url("./font/Roboto_Condensed/static/RobotoCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #eef4fb;
  --bg-strong: #dfe9f7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #0b1d31;
  --muted: #5f6b7a;
  --border: rgba(11, 29, 49, 0.1);
  --accent: #0b1d31;
  --accent-soft: rgba(11, 29, 49, 0.1);
  --success: #047857;
  --shadow: 0 28px 64px rgba(21, 43, 74, 0.14);
  --page-tint: rgba(10, 95, 190, 0.1);
  --page-tint-secondary: rgba(38, 180, 97, 0.1);
  --page-base-top: #f7fbff;
  --page-base-bottom: #edf4fb;
  --surface-rgb: 255, 255, 255;
  --surface-strong-rgb: 255, 255, 255;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "RobotoCondensed", "Roboto Condensed", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top center, var(--page-tint), transparent 28%),
    radial-gradient(circle at top right, var(--page-tint-secondary), transparent 20%),
    linear-gradient(180deg, var(--page-base-top) 0%, var(--page-base-bottom) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
  color: var(--text);
}

.top-progress {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.top-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 180ms linear;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(244, 236, 223, 0.94));
  box-shadow: var(--shadow);
}

body.is-debug-mode .hero {
  border-color: #7f1d1d;
  background: linear-gradient(135deg, #991b1b, #dc2626 58%, #b91c1c);
  color: #fff;
}

body.is-debug-mode .hero .eyebrow,
body.is-debug-mode .hero .race-meta {
  color: rgba(255, 255, 255, 0.82);
}

body.is-debug-mode .hero-actions button {
  background: #fff;
  color: #991b1b;
}

body.is-debug-mode .hero-actions .secondary-action {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.race-meta {
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-actions button,
.hero-actions a {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ranking-debug-head,
.ranking-debug-cell {
  width: 46px;
  text-align: center;
}

.ranking-debug-action {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
}

.ranking-debug-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ranking-debug-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ranking-debug-cell-mobile {
  padding-left: 6px !important;
  padding-right: 0 !important;
}

.hero-actions .secondary-action {
  background: rgba(36, 31, 25, 0.08);
  color: var(--text);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.status-card,
.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.status-card {
  padding: 18px 20px;
}

.status-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.panel {
  margin-top: 20px;
  padding: 22px;
}

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

.panel-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabs-bar {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--bg-strong);
}

.page-tabs {
  margin-top: 20px;
}

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

.mobile-tab-select-row {
  display: none;
}

.mobile-controls-row {
  display: none;
  margin-top: 20px;
}

.mobile-gender-filter-row {
  display: none;
}

.mobile-tab-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.gender-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-strong);
}

.gender-filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.gender-filter-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.search-row {
  margin-top: 12px;
}

.table-search-input {
  width: min(420px, 100%);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

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

.view-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-inline {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.split-sections {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.leaderboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.leaderboard-limit-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--bg-strong);
}

.leaderboard-limit-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.leaderboard-limit-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.leaderboard-groups {
  display: grid;
  gap: 14px;
}

.leaderboard-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.leaderboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.leaderboard-section-head h3 {
  margin: 0;
  font-size: 1rem;
}

.leaderboard-card-list {
  padding: 14px;
}

.leaderboard-desktop {
  display: block;
}

.leaderboard-mobile {
  display: none;
}

.leaderboard-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  cursor: pointer;
}

.leaderboard-rank {
  font-size: 1.15rem;
  font-weight: 800;
}

.leaderboard-athlete {
  min-width: 0;
}

.leaderboard-athlete-name {
  font-weight: 800;
  text-transform: uppercase;
}

.leaderboard-athlete-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.leaderboard-time {
  text-align: right;
}

.leaderboard-time-value {
  font-weight: 800;
}

.leaderboard-gap {
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.82rem;
  font-style: italic;
}

.leaderboard-row {
  cursor: pointer;
}

.leaderboard-col-rank,
.leaderboard-col-athlete,
.leaderboard-col-time {
  font-weight: 800;
}

.leaderboard-alert-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  vertical-align: middle;
}

.split-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.split-section summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.split-section summary::-webkit-details-marker {
  display: none;
}

.split-section-body {
  padding: 0 14px 14px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-strong);
  color: var(--text);
  font-size: 0.88rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.debug-table-toolbar {
  padding: 12px 12px 0;
}

.debug-table-filter {
  width: min(360px, 100%);
}

.all-splits-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.all-splits-toolbar-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

.all-splits-toolbar-action:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.all-splits-toolbar-action.is-print {
  background: #475569;
}

.all-splits-toolbar-action.is-export {
  background: #0f766e;
}

.all-splits-toolbar-action.is-filter {
  background: #334155;
}

.all-splits-toolbar-action.is-filter.is-active {
  background: #dc2626;
}

.all-splits-toolbar-action.is-add {
  background: #087fc4;
}

.all-splits-toolbar-action span {
  font-size: 1.1rem;
  line-height: 1;
}

.all-splits-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.all-splits-tabs button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}

.all-splits-tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

body.all-splits-page .page-shell {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-top: 0;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 46px;
}

body.all-splits-page .status-grid {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  background: #087fc4;
  box-shadow: 0 -3px 12px rgba(11, 29, 49, 0.2);
}

body.all-splits-page .status-card {
  box-sizing: border-box;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 30px;
  height: 30px;
  padding: 4px 14px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-size: 0.74rem;
}

body.all-splits-page .status-card:first-child {
  flex: 0 0 154px;
  width: 154px;
}

body.all-splits-page .status-card .status-label {
  display: inline;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

body.all-splits-page .status-card strong {
  color: #fff;
  white-space: nowrap;
}

body.all-splits-page .status-card:first-child strong {
  display: inline-block;
  width: 7ch;
}

body.all-splits-page .status-card .status-label {
  color: rgba(255, 255, 255, 0.68);
}

.reader-status-bar {
  display: inline-flex;
  align-items: stretch;
  gap: 5px;
  margin-left: auto;
  padding: 3px 8px;
}

.reader-status-cell {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.reader-status-cell.is-fresh {
  background: #16803d;
}

.reader-status-cell.is-warning {
  background: #c88400;
  color: #17212b;
}

.reader-status-cell.is-stale {
  background: #c43131;
}

.reader-status-cell:hover {
  filter: brightness(1.1);
}

body.all-splits-page .hero {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0 -32px;
  min-height: 34px;
  padding: 4px 32px;
  border-width: 0 0 1px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #087fc4;
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 29, 49, 0.1);
}

body.all-splits-page .hero .eyebrow {
  display: none;
}

body.all-splits-page .hero h1 {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1;
}

body.all-splits-page .hero .race-meta {
  display: none;
}

body.all-splits-page .hero-actions {
  gap: 7px;
}

body.all-splits-page .hero-actions button,
body.all-splits-page .hero-actions a {
  padding: 6px 10px;
  font-size: 0.72rem;
}

body.all-splits-page .hero-actions .secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.all-splits-refresh-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.all-splits-refresh-select select {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 3px 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font: inherit;
}

.all-splits-refresh-select option {
  color: var(--text);
}

.print-ranking-form {
  display: grid;
  gap: 14px;
}

.print-ranking-form > label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.print-ranking-form > label > select {
  min-height: 96px;
}

.print-ranking-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.print-ranking-form fieldset {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.print-ranking-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
}

.print-ranking-type,
.print-ranking-leaderboard-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.print-ranking-leaderboard-options label {
  display: grid;
  gap: 5px;
  min-width: 130px;
  font-size: 0.85rem;
  font-weight: 700;
}

.print-ranking-leaderboard-options input,
.print-ranking-leaderboard-options select {
  min-height: 42px;
  box-sizing: border-box;
}

.print-ranking-columns label {
  font-size: 0.85rem;
}

body.all-splits-page.is-print-view .hero-actions,
body.all-splits-page.is-print-view .status-grid,
body.all-splits-page.is-print-view .all-splits-tabs,
body.all-splits-page.is-print-view .all-splits-toolbar,
body.all-splits-page.is-print-view .all-splits-row-actions {
  display: none;
}

body.all-splits-page.is-print-view .page-shell {
  padding: 12px;
}

body.all-splits-page.is-print-view .hero {
  position: static;
  min-height: 0;
}

body.all-splits-page.is-print-view .panel {
  border: 0;
  box-shadow: none;
}

@media print {
  .top-progress,
  .hero-actions,
  .status-grid,
  .all-splits-tabs,
  .all-splits-toolbar,
  .all-splits-row-actions {
    display: none !important;
  }

  body.all-splits-page .page-shell,
  body.all-splits-page .panel {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .table-wrap {
    overflow: visible;
  }
}

.all-splits-search {
  width: min(360px, 100%);
}

.all-splits-missing-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.all-splits-missing-switch input {
  accent-color: #dc2626;
}

.all-splits-mode {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.all-splits-mode-row {
  margin: 0 0 12px;
}

.all-splits-mode button {
  border: 0;
  border-right: 1px solid var(--border);
  padding: 9px 14px;
  background: var(--surface-strong);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.all-splits-mode button:last-child {
  border-right: 0;
}

.all-splits-mode button.is-active {
  background: var(--accent);
  color: #fff;
}

.position-trend-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.position-trend-toolbar label {
  color: var(--muted);
  font-weight: 800;
}

.position-trend-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.position-trend-filter-label {
  color: var(--muted);
  font-weight: 800;
}

.position-trend-segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.position-trend-segmented button {
  min-width: 46px;
  min-height: 38px;
  padding: 7px 12px;
  border: 0;
  border-right: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.position-trend-segmented button:last-child {
  border-right: 0;
}

.position-trend-segmented button.is-active {
  background: var(--accent);
  color: #fff;
}

.position-trend-toolbar select,
.position-trend-toolbar input {
  width: min(460px, 100%);
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.position-trend-toolbar select {
  width: auto;
  min-width: 144px;
}

.position-trend-toolbar input {
  width: 100px;
}

.position-trend-toolbar input[type="range"] {
  width: min(300px, 100%);
  min-height: 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
}

.position-trend-range-label output {
  display: inline-block;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(3, 105, 161, 0.14);
  color: var(--ink);
  text-align: center;
}

.position-trend-chart {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
}

.position-trend-summary {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.position-trend-scroll {
  overflow-x: auto;
}

.position-trend-svg {
  display: block;
  min-width: 720px;
  width: 100%;
  height: auto;
}

.position-trend-grid {
  stroke: var(--border);
  stroke-dasharray: 4 5;
}

.position-trend-axis {
  stroke: var(--muted);
  stroke-width: 1.2;
}

.position-trend-axis-label,
.position-trend-axis-title,
.position-trend-split-label,
.position-trend-athlete-label {
  fill: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.position-trend-athlete-label {
  font-size: 11px;
  font-weight: 800;
}

.position-trend-axis-title {
  font-size: 11px;
}

.position-trend-line {
  fill: none;
  stroke-width: 2.5;
  opacity: 0.78;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
}

.position-trend-line:hover {
  opacity: 1;
  stroke-width: 3.5;
}

.position-trend-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 7px 12px;
  margin-top: 16px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.78rem;
}

.position-trend-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.position-trend-legend i {
  width: 12px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.position-trend-point {
  fill: var(--accent);
  stroke: var(--surface-strong);
  stroke-width: 2;
}

.position-trend-point-label {
  fill: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
}

.timing-bar-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.timing-bar-filters {
  align-self: start;
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
}

.timing-bar-filters h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.timing-bar-filters label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.timing-bar-filters .timing-bar-anomalies-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.86rem;
}

.timing-bar-filters .timing-bar-anomalies-switch input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.timing-bar-filters input,
.timing-bar-filters select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.timing-bar-main {
  min-width: 0;
}

.timing-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.timing-bar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.timing-bar-legend i {
  width: 13px;
  height: 13px;
  border-radius: 3px;
}

.timing-bar-legend .timing-bar-missing-swatch {
  background: #dc2626;
}

.timing-bar-chart {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
}

.timing-bar-summary {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.timing-bar-scroll {
  overflow-x: auto;
}

.timing-bar-canvas {
  min-width: 860px;
}

.timing-bar-axis,
.timing-bar-row {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 250px;
  column-gap: 12px;
}

.timing-bar-axis {
  margin-bottom: 7px;
}

.timing-bar-axis-track {
  position: relative;
  height: 25px;
  border-bottom: 1px solid var(--border);
}

.timing-bar-axis-track span {
  position: absolute;
  bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timing-bar-axis-track span:first-child {
  transform: none;
}

.timing-bar-axis-track span:last-child {
  transform: translateX(-100%);
}

.timing-bar-axis-athlete {
  align-self: end;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.timing-bar-row {
  min-height: 17px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  cursor: pointer;
}

.timing-bar-row:hover .timing-bar-track {
  filter: brightness(0.93);
}

.timing-bar-track {
  position: relative;
  display: flex;
  align-items: stretch;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 1px), var(--border) calc(20% - 1px), var(--border) 20%);
}

.timing-bar-stack {
  display: flex;
  min-height: 15px;
}

.timing-bar-segment {
  display: block;
  min-width: 1px;
  border-right: 1px solid rgba(255, 255, 255, 0.75);
}

.timing-bar-segment-missing {
  width: 8px;
  flex: 0 0 8px;
  background: #dc2626;
}

.timing-bar-athlete {
  position: absolute;
  top: 50%;
  z-index: 1;
  min-width: 0;
  padding: 1px 0;
  color: var(--ink);
  font-size: 0.66rem;
  line-height: 1.1;
  transform: translateY(-50%);
}

.timing-bar-athlete strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .timing-bar-layout {
    grid-template-columns: 1fr;
  }
}

.all-splits-table th,
.all-splits-table td {
  white-space: nowrap;
}

.all-splits-table th:nth-child(n + 6),
.all-splits-table td:nth-child(n + 6) {
  text-align: right;
}

.all-splits-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.all-splits-sort-button span {
  color: var(--muted);
  font-size: 0.75em;
}

.all-splits-sort-button.is-active span {
  color: var(--accent);
}

.all-splits-table th:nth-child(n + 6) .all-splits-sort-button {
  justify-content: flex-end;
  width: 100%;
}

.all-splits-time-value,
.all-splits-time-rank {
  display: block;
}

.all-splits-time-rank {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.all-splits-athlete-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.all-splits-athlete-action:hover {
  color: var(--accent);
  text-decoration: underline;
}

.all-splits-athlete-team {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.15;
}

.all-splits-table td.missing-split-cell {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.all-splits-table td.missing-split-cell .all-splits-time-rank {
  color: inherit;
}

.all-splits-athlete-name-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.all-splits-row-actions {
  white-space: nowrap;
}

.all-splits-table tr.has-athlete-corrections td {
  background-color: rgba(245, 158, 11, 0.08);
}

.athlete-correction-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  border-radius: 50%;
  background: #d97706;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.all-splits-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.all-splits-row-action:last-child {
  margin-right: 0;
}

.all-splits-row-action:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.all-splits-row-action:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.manual-detection-athlete-add {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

.manual-detection-cell-add {
  min-width: 22px;
  height: 22px;
  margin: 4px 0 0 6px;
  padding: 0 5px;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

.manual-detection-dialog {
  width: min(560px, calc(100% - 24px));
}

.manual-detection-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.manual-detection-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.manual-detection-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.manual-detection-form input,
.manual-detection-form select {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
}

.manual-detection-form input[readonly] {
  background: rgba(120, 120, 120, 0.16);
}

.manual-detection-timestamp,
.manual-detection-error,
.manual-detection-actions {
  grid-column: 1 / -1;
}

.manual-detection-error {
  margin: -4px 0 0;
  color: #b91c1c;
  font-size: 0.86rem;
  font-weight: 700;
}

.manual-detection-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.manual-detection-submit {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #075985;
  border-radius: 9px;
  background: #0284c7;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.24);
}

.manual-detection-submit:hover {
  background: #0369a1;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.sequence-status.is-manual {
  background: rgba(3, 105, 161, 0.14);
  color: #075985;
}

#corrections-table tr.is-manual td:not(.debug-actions-cell) {
  background: rgba(3, 105, 161, 0.08);
}

.debug-loop-channel {
  display: none;
}

.debug-actions-cell {
  width: 54px;
  text-align: center;
}

.enrolled-actions-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-width: 74px;
}

.enrolled-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.enrolled-detail-action:hover {
  text-decoration: none;
}

.debug-delete-action {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff1f2;
  color: #b91c1c;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.debug-delete-action:hover {
  border-color: #ef4444;
  background: #fee2e2;
}

.debug-restore-action {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #86efac;
  border-radius: 8px;
  background: #f0fdf4;
  color: #15803d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.debug-restore-action:hover {
  border-color: #22c55e;
  background: #dcfce7;
}

#debug-table tr.is-excluded td:not(.debug-actions-cell) {
  background: rgba(254, 226, 226, 0.55);
  color: #991b1b;
  text-decoration: line-through;
}

.sequence-status.is-excluded {
  background: #fee2e2;
  color: #991b1b;
}

body.is-active-system .debug-loop-channel {
  display: table-cell;
}

.starting-debug-head,
.starting-debug-cell {
  width: 86px;
  text-align: center;
}

.starting-debug-action {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-strong);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.starting-debug-action:hover {
  border-color: var(--accent);
  background: rgba(202, 138, 4, 0.12);
}

.ranking-desktop {
  display: block;
}

.ranking-mobile {
  display: none;
}

.starting-mobile {
  display: none;
}

.starting-mobile-bib {
  width: 42px;
  padding-right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.starting-mobile-team {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.starting-mobile-debug {
  width: 76px;
  padding-left: 6px !important;
  text-align: right;
}

.mobile-ranking-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: transparent;
}

.mobile-ranking-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.42);
}

.mobile-ranking-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: normal;
}

.mobile-cell-athlete {
  min-width: 0;
  padding-right: 8px;
}

.mobile-athlete-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
}

.mobile-athlete-copy {
  display: flex;
  flex-direction: column;
}

.mobile-rank-inline {
  margin-right: 6px;
  font-size: 0.68rem;
  font-weight: 800;
}

.mobile-athlete-surname {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-athlete-name {
  font-size: 0.68rem;
}

.mobile-athlete-team {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
}

.mobile-cell-team {
  display: none;
  width: 30%;
  padding-left: 8px;
  padding-right: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  white-space: normal;
}

.mobile-cell-time {
  width: 62px;
  text-align: right;
  padding-left: 8px;
}

.mobile-time-value {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.05;
}

.mobile-gap {
  margin-top: 1px;
  color: var(--accent);
  font-size: 0.64rem;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--surface-strong);
}

thead {
  background: rgba(36, 31, 25, 0.04);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th.align-left,
td.align-left {
  text-align: left;
}

th.align-center,
td.align-center {
  text-align: center;
}

th.align-right,
td.align-right {
  text-align: right;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.48);
}

tbody tr.is-ranked {
  background: rgba(45, 106, 79, 0.06);
}

.ranking-desktop .col-pos-assoluta,
.ranking-desktop .col-cognome,
.ranking-desktop .col-tempo {
  font-weight: 800;
}

.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}

.file-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.56);
}

.modal-dialog {
  position: relative;
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-dialog-wide {
  width: min(1600px, calc(100% - 24px));
}

.athlete-modal-dialog {
  width: min(700px, calc(100% - 20px));
  padding: 0;
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.athlete-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
}

.athlete-modal-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.05;
}

.athlete-modal-team-heading {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.athlete-modal-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px;
  padding: 14px 18px 0;
}

.athlete-modal-grid-no-top {
  padding-top: 0;
}

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

.athlete-kv {
  display: contents;
}

.athlete-kv-label,
.athlete-kv-value {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
}

.athlete-kv-label {
  background: rgba(120, 120, 120, 0.24);
  font-weight: 700;
}

.athlete-kv-value {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-weight: 800;
}

.athlete-kv-value-accent {
  background: #0f6f73;
  color: #fff;
}

.athlete-modal-section {
  padding: 14px 18px 0;
}

.athlete-modal-section h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.athlete-modal-section:last-of-type {
  padding-top: 6px;
}

.athlete-modal-section:last-of-type h3 {
  margin-bottom: 8px;
}

.athlete-passages {
  display: grid;
  gap: 8px;
  padding: 0;
}

.athlete-passages-desktop {
  display: block;
}

.athlete-passages-mobile {
  display: none;
}

.athlete-passages-header,
.athlete-passages-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr 1fr;
  gap: 8px;
}

.athlete-passages-cell {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  font-weight: 700;
}

.athlete-passages-header .athlete-passages-cell,
.athlete-passages-row .athlete-passages-cell:first-child {
  background: rgba(120, 120, 120, 0.24);
  border-color: transparent;
}

.athlete-passages-split-cell,
.athlete-passages-title {
  gap: 7px;
}

.manual-passage-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(3, 105, 161, 0.14);
  color: #075985;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.manual-passage-remove {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #b91c1c;
  border-radius: 5px;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.athlete-passages-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-strong);
  margin-bottom: 10px;
}

.athlete-passages-title {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(120, 120, 120, 0.24);
  font-weight: 700;
}

.athlete-passages-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  background: transparent;
}

.athlete-passages-table td {
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

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

.athlete-passages-table td:first-child {
  width: 140px;
  background: rgba(120, 120, 120, 0.12);
  font-weight: 700;
}

.athlete-modal-actions {
  display: flex;
  justify-content: center;
  padding: 20px 18px 22px;
}

.athlete-close-btn {
  min-width: 150px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.modal-head h3 {
  margin: 4px 0 0;
}

.modal-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-meta {
  margin-top: 10px;
  color: var(--muted);
}

.modal-content {
  margin: 16px 0 0;
  padding: 16px;
  min-height: 240px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #201914;
  color: #f8efe0;
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-table-wrap {
  margin-top: 16px;
  max-height: calc(100vh - 180px);
}

.sequence-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.sequence-status.is-valid {
  background: rgba(45, 106, 79, 0.16);
  color: #1f513c;
}

.sequence-status.is-discarded {
  background: rgba(214, 51, 108, 0.16);
  color: #8f2147;
}

.is-muted {
  color: var(--muted);
}

.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
    padding-top: 20px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs-toolbar {
    display: none;
  }

  .page-tabs {
    display: none;
  }

  .mobile-controls-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
    align-items: center;
  }

  .mobile-tab-select-row,
  .mobile-gender-filter-row {
    display: block;
  }

  .panel-head {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .leaderboard-toolbar {
    align-items: stretch;
  }

  .leaderboard-desktop {
    display: none;
  }

  .leaderboard-mobile {
    display: grid;
    gap: 10px;
  }

  .leaderboard-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .leaderboard-athlete-meta {
    font-size: 0.76rem;
  }

  .leaderboard-gap {
    font-size: 0.72rem;
  }

  .split-legend {
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .view-meta {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }

  .panel-head h2 {
    flex: 0 0 auto;
  }

  .status-label {
    margin-bottom: 0;
  }

  .ranking-desktop {
    display: none;
  }

  .ranking-mobile {
    display: block;
  }

  .starting-desktop-wrap {
    display: none;
  }

  .starting-mobile {
    display: block;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }

  .athlete-modal-title {
    font-size: 1.3rem;
  }

  .athlete-modal-team-heading {
    font-size: 0.92rem;
  }

  .athlete-modal-grid {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .athlete-passages-desktop {
    display: none;
  }

  .athlete-passages-mobile {
    display: grid;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .mobile-cell-team {
    display: table-cell;
  }
}
