:root {
  --primary_orange: #FF4A00;
  --black: #000000;
  --white: #FFFFFF;

  --radius: 16px;
  --stroke: 4px;
  --shadow-step: 10px;
  --gap: 14px;

  /* Leopard pattern: orange/black only (no gradients). */
  --pattern-leopard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Crect width='180' height='180' fill='%23FF4A00'/%3E%3Cg fill='%23000000'%3E%3Ccircle cx='34' cy='32' r='22'/%3E%3Ccircle cx='112' cy='40' r='18'/%3E%3Ccircle cx='156' cy='76' r='20'/%3E%3Ccircle cx='58' cy='98' r='18'/%3E%3Ccircle cx='126' cy='124' r='22'/%3E%3Ccircle cx='26' cy='154' r='18'/%3E%3Ccircle cx='92' cy='162' r='16'/%3E%3C/g%3E%3Cg fill='%23FF4A00' stroke='%23000000' stroke-width='10'%3E%3Ccircle cx='34' cy='32' r='14'/%3E%3Ccircle cx='112' cy='40' r='10'/%3E%3Ccircle cx='156' cy='76' r='12'/%3E%3Ccircle cx='58' cy='98' r='10'/%3E%3Ccircle cx='126' cy='124' r='14'/%3E%3Ccircle cx='26' cy='154' r='10'/%3E%3Ccircle cx='92' cy='162' r='9'/%3E%3C/g%3E%3C/svg%3E");

  /* Poster-dot/noise: black on white only. */
  --pattern-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23FFFFFF'/%3E%3Cg fill='%23000000'%3E%3Ccircle cx='6' cy='8' r='1'/%3E%3Ccircle cx='20' cy='14' r='1'/%3E%3Ccircle cx='34' cy='6' r='1'/%3E%3Ccircle cx='44' cy='22' r='1'/%3E%3Ccircle cx='10' cy='30' r='1'/%3E%3Ccircle cx='26' cy='34' r='1'/%3E%3Ccircle cx='40' cy='40' r='1'/%3E%3Ccircle cx='16' cy='44' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--black);
  background-color: var(--white);
  background-image: var(--pattern-dots);
  background-repeat: repeat;
}

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

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

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

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.container--wide {
  width: min(1400px, calc(100% - 32px));
}

.container--protocol {
  width: min(1320px, calc(100% - 32px));
}

.container--racer {
  width: min(1800px, calc(100% - 32px));
}

.header {
  position: sticky;
  top: 0;
  background: var(--black);
  border-bottom: var(--stroke) solid var(--primary_orange);
  z-index: 10;
}

.header .container {
  width: calc(100% - 32px);
  max-width: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 14px 0;
}

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

.logo {
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.nav {
  display: flex;
  gap: 10px;
  color: var(--white);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--white);
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-toggle:hover {
  background: var(--primary_orange);
  border-color: var(--primary_orange);
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--white);
  background: var(--black);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav a:hover {
  background: var(--primary_orange);
  border-color: var(--primary_orange);
  color: var(--white);
}

.nav > .nav-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--white);
  background: var(--black);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav > .nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav > .nav-more {
  position: relative;
}

.nav > .nav-more[open] > summary,
.nav > .nav-more > summary:hover {
  background: var(--primary_orange);
  border-color: var(--primary_orange);
  color: var(--white);
}

.nav-more__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--white);
  background: var(--black);
}

.nav > .nav-more[open] .nav-more__menu {
  display: flex;
}

.account-chip {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: var(--stroke) solid var(--white);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  flex: 0 0 auto;
}

.account-chip--visible {
  display: inline-flex;
}

.account-chip__avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-chip {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: var(--stroke) solid var(--white);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.cart-chip--visible {
  display: inline-flex;
}

.cart-chip__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.cart-chip__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cart-chip__sum {
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .header__inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 0;
  }

  .header__right {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 8px;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 8px 10px;
    border-width: 2px;
    font-size: 12px;
  }

  .nav {
    width: min(360px, calc(100vw - 20px));
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    border: 2px solid var(--white);
    border-radius: 12px;
    background: var(--black);
    z-index: 40;
  }

  .nav a {
    width: 100%;
    border-width: 2px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .nav > .nav-more {
    width: 100%;
  }

  .nav > .nav-more > summary {
    width: 100%;
    border-width: 2px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .nav-more__menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    border: 0;
    border-top: 2px solid var(--white);
    border-radius: 0;
    padding: 8px 0 0;
  }

  .nav-open .nav {
    display: flex;
  }

  .account-chip {
    order: 2;
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  .cart-chip {
    order: 1;
    padding: 6px 10px;
    border-width: 2px;
  }

  .cart-chip__sum {
    display: none;
  }
}

.main {
  padding: 0 0 70px;
}

.hero {
  padding: 54px 0 28px;
  background-color: var(--primary_orange);
  background-image: var(--pattern-leopard);
  background-repeat: repeat;
  border-bottom: var(--stroke) solid var(--black);
}

.hero__inner {
  padding: 34px;
  background: var(--black);
  border: var(--stroke) solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--black);
  color: var(--white);
  position: relative;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(42px, 6vw, 82px);
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 0.92;
}

.hero__logo {
  width: min(180px, 100%);
  height: auto;
  margin: 0;
  position: absolute;
  top: 24px;
  right: 24px;
}

.hero__subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--white);
  max-width: 760px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero__subtitle,
.hero__actions,
.hero h1 {
  max-width: calc(100% - 220px);
}

.hero__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .hero__inner {
    text-align: center;
  }

  .hero__logo {
    position: static;
    margin: 0 auto 12px;
  }

  .hero__subtitle,
  .hero__actions,
  .hero h1 {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }
}

.section {
  padding: 28px 0;
}

.section--tight {
  padding: 18px 0;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section__lead {
  margin: 0 0 14px;
  color: var(--black);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  max-width: 920px;
}

.section__header h1,
.section__header h2 {
  margin: 0;
  font-size: 26px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

.section__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account__header {
  align-items: center;
}

.account__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account__grid--overview {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas:
    "profile profile"
    "tiles status";
  align-items: start;
}

.account-overview__profile {
  grid-area: profile;
}

.account-overview__tiles {
  grid-area: tiles;
}

.account-overview__status {
  grid-area: status;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.account-shell {
  width: 100%;
  /* Let the left nav hug the viewport edge; keep a right gutter for comfort. */
  padding: 0 16px 0 0;
}

.account-shell__inner {
  /* Use more horizontal space than default container; align left (not centered). */
  width: min(1800px, 100%);
  margin: 0 auto 0 0;
}

.account-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 0 var(--black);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-content {
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 0 var(--black);
  padding: 12px;
}

.account-pane {
  display: block;
}

.account-stack {
  display: grid;
  gap: 16px;
}

.account-block {
  display: grid;
  gap: 12px;
}

.account-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.account-block__title {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.account-block__hint {
  margin-top: -6px;
}

.account-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: var(--stroke) solid transparent;
  border-radius: 14px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--black);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.account-nav__item:hover {
  border-color: var(--black);
  background: rgba(255, 122, 0, 0.12);
}

.account-nav__item--active {
  border-color: var(--black);
  background: var(--primary_orange);
}

.account-nav__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 8px;
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.account-tabs[data-account-tabs="on"] [data-account-tab-section] {
  display: none;
}

.account-tabs[data-account-tabs="on"] [data-account-tab-section].is-active {
  display: block;
}

.account-card {
  height: 100%;
}

.account-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-card__title {
  margin: 0;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.account-card__hint {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.account-card__note {
  margin-top: 12px;
}

.account-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 12px;
  border: var(--stroke) solid var(--black);
  border-radius: 16px;
  text-decoration: none;
  color: var(--black);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.16), rgba(255, 255, 255, 0.9));
  box-shadow: 0 2px 0 var(--black);
  transition: transform 120ms ease, background 120ms ease;
}

.account-tile:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.24), rgba(255, 255, 255, 0.92));
}

.account-tile__kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 900;
  opacity: 0.75;
}

.account-tile__title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 14px;
}

.account-tile__meta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.85;
}

.account-statuslist {
  display: grid;
  gap: 8px;
}

.account-statusitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: var(--stroke) solid var(--black);
  border-radius: 16px;
  padding: 10px 12px;
  background: var(--white);
  box-shadow: 0 2px 0 var(--black);
}

.account-statusitem[data-kind="ok"] {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.14), rgba(255, 255, 255, 0.96));
}

.account-statusitem[data-kind="warn"] {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.96));
}

.account-statusitem[data-kind="loading"] {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(255, 255, 255, 0.96));
}

.account-statusitem__main {
  display: grid;
  gap: 2px;
}

.account-statusitem__label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-statusitem__status {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.85;
}

.account-statusitem__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-mini {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.account-workout__list {
  display: grid;
  gap: 12px;
}

.account-workout__item {
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.account-workout__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.account-workout__title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 14px;
}

.account-workout__meta {
  font-weight: 800;
  font-size: 13px;
  opacity: 0.85;
}

.account-workout__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-profile__aside {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.account-stat {
  background: var(--white);
  border: var(--stroke) solid var(--black);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 140px;
  box-shadow: 0 2px 0 var(--black);
}

.account-stat__label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-stat__value {
  font-size: 22px;
  font-weight: 900;
  margin-top: 6px;
}

.account-stat__hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--black_soft);
  margin-top: 2px;
}

.account-profile__avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: var(--stroke) solid var(--black);
  background: var(--white);
  flex: 0 0 auto;
}

.account-profile__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary_orange);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.account-profile__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-profile__name {
  font-size: 20px;
  font-weight: 900;
}

.account-profile__link {
  margin-top: 6px;
}

.account-profile__actions {
  margin-left: 0;
}

.account-login__widget {
  margin-top: 6px;
}

.account-form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.account-status {
  margin-left: 2px;
}

.link {
  color: var(--black);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  border-bottom: var(--stroke) solid var(--primary_orange);
  padding-bottom: 2px;
}

.link:hover {
  color: var(--primary_orange);
}

.link--inline {
  color: var(--primary_orange);
  border-bottom: var(--stroke) solid var(--primary_orange);
}

.link--inline:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

@media (max-width: 1024px) {
  .grid--photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid--photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photo {
  background: var(--white);
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--black);
  overflow: hidden;
  display: block;
}

.photo__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.album__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.card,
.product,
.row {
  background: var(--white);
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--black);
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card--fullbleed-table {
  overflow: visible;
}

.card--fullbleed-table .card__body {
  padding-left: 0;
  padding-right: 0;
}

.card--viewport80 .card__body {
  padding: 0;
}

.protocol-shell--viewport80 {
  width: min(80vw, 1600px);
  margin-left: auto;
  margin-right: auto;
  transform: translateX(calc(var(--shadow-step) * -0.5));
}

.card__media {
  display: block;
  border-bottom: var(--stroke) solid var(--black);
}

.card__media--event-cover {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.card__media-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card__media-img--contain {
  aspect-ratio: auto;
  height: 500px;
  object-fit: contain;
}

.promo-img-wrap {
  margin-top: 14px;
}

.copy-pill {
  appearance: none;
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--white);
  color: var(--black);
  font: inherit;
  cursor: pointer;
  transition: transform 90ms linear, background 120ms linear, color 120ms linear;
  box-shadow: 6px 6px 0 var(--black);
}

.copy-pill:hover {
  transform: translateY(-2px);
  background: var(--black);
  color: var(--white);
}

.copy-pill:active {
  transform: translateY(0);
}

.copy-pill:focus-visible {
  outline: none;
  border-color: var(--primary_orange);
}

.copy-pill.is-copied {
  background: var(--primary_orange);
  color: var(--white);
}

.promo-copy-status {
  margin-top: 10px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  min-height: 14px;
}

.promo-copy-status.is-ok {
  color: var(--primary_orange);
}

.promo-copy-status.is-err {
  color: var(--black);
}

.promo-img {
  width: min(520px, 100%);
  height: auto;
  display: block;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
}

.card__body {
  padding: 18px 18px 8px;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card__top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.card__kicker {
  font-size: 13px;
  color: var(--white);
  margin-bottom: 10px;
  background: var(--black);
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  padding: 6px 10px;
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.card__title {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.card__meta {
  margin-top: 10px;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.card__text {
  margin: 10px 0 0;
  color: var(--black);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.card__list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--black);
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
}

.card__actions {
  padding: 14px 18px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  flex-wrap: wrap;
}

.workouts {
  display: grid;
  gap: calc(var(--gap) * 2);
}

.workout__list {
  border-top: var(--stroke) solid var(--black);
  background: var(--white);
}

.workout__item {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.workout__item + .workout__item {
  border-top: var(--stroke) dashed var(--black);
}

.workout__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.workout__title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.workout__meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.workout__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workout__intervals {
  margin: 0;
  padding: 14px 16px;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  white-space: pre-wrap;
}

.workout__chart {
  margin-top: 8px;
}

.workout-chart__svg {
  width: 100%;
  height: auto;
  display: block;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  overflow: visible;
}

.constructor-grid {
  display: grid;
  gap: calc(var(--gap) * 2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.constructor-card {
  min-height: 100%;
}

.constructor-text {
  width: 100%;
  resize: vertical;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  background: var(--white);
}

.constructor-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.constructor-actions--save {
  margin-top: 10px;
}

.constructor-form {
  display: grid;
  gap: 12px;
}

.constructor-field {
  display: grid;
  gap: 6px;
}

.constructor-field span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.constructor-inline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.constructor-inline input,
.constructor-inline select,
.constructor-repeat input {
  width: 100%;
  padding: 10px 12px;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  font-weight: 900;
  background: var(--white);
}

.constructor-input {
  width: 100%;
  padding: 10px 12px;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  font-weight: 900;
  background: var(--white);
}

.constructor-sep {
  font-weight: 900;
  text-align: center;
}

.constructor-repeat {
  display: grid;
  grid-template-columns: 90px auto;
  gap: 8px;
  align-items: center;
}

.constructor-divider {
  margin: 16px 0;
  height: var(--stroke);
  background: var(--black);
}

.constructor-save {
  margin-top: 14px;
  padding-top: 14px;
  border-top: var(--stroke) solid var(--black);
  display: grid;
  gap: 10px;
}

.constructor-save--locked {
  padding: 14px;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
}

.constructor-status {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.constructor-status--inline {
  margin-top: 0;
}

.constructor-meta {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.85;
}

.constructor-chart {
  margin-top: 12px;
}

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

.seo-intro {
  margin-bottom: calc(16px + var(--shadow-step) + var(--stroke));
}

.seo-intro .coach__field {
  margin-top: 0;
}

.seo-intro .coach__field + .coach__field {
  margin-top: 12px;
}

.seo-faq {
  padding-top: 20px;
}

.seo-faq__title {
  margin: 0 0 12px;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 900;
}

.seo-faq__item {
  margin-bottom: 10px;
}

.seo-faq__item--last {
  margin-bottom: 0;
}

.seo-faq__answer {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.product {
  overflow: hidden;
}

.product__media {
  aspect-ratio: 4 / 3;
  background: var(--black);
  border-bottom: var(--stroke) solid var(--black);
  display: grid;
  place-items: center;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__placeholder {
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product__body {
  padding: 16px;
}

.product__title {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.product__price {
  color: var(--primary_orange);
  font-weight: 900;
  text-transform: uppercase;
}

.product__text {
  margin-top: 10px;
  color: var(--black);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.product__actions {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.product__label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.product__select,
.product__input {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--black);
  font-size: 14px;
  font-weight: 800;
}

.product__row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.product__input--qty {
  width: 120px;
}

.product__questions {
  display: grid;
  gap: 8px;
}

.cart {
  display: grid;
  gap: 16px;
}

.cart__table {
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.cart__row {
  display: grid;
  grid-template-columns: 1.5fr 0.4fr 0.6fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: var(--stroke) solid var(--black);
  align-items: center;
  font-weight: 800;
}

.cart__row--head {
  background: var(--black);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
}

.cart__row:last-child {
  border-bottom: 0;
}

.cart__summary {
  display: grid;
  gap: 6px;
  font-weight: 900;
  padding: 12px;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
}

.cart__total {
  font-size: 18px;
  text-transform: uppercase;
}

.cart__actions {
  display: flex;
  justify-content: flex-end;
}

.cart__checkout {
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}

.cart__checkout h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-weight: 900;
}

.cart__form {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.cart__label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.cart__discounts {
  border: var(--stroke) dashed var(--black);
  border-radius: var(--radius);
  padding: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--white);
}

.cart__discounts-title {
  margin-bottom: 8px;
}

.cart__discount-line {
  margin-bottom: 4px;
}

.orders__grid {
  display: grid;
  gap: 12px;
}

.orders__card {
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
}

.orders__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.orders__id {
  font-weight: 900;
  text-transform: uppercase;
}

.orders__status {
  padding: 6px 10px;
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  background: var(--primary_orange);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
}

.orders__items {
  margin: 0 0 10px;
  padding-left: 18px;
  font-weight: 800;
}

.orders__total {
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .orders__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .cart__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap);
  padding: 16px;
}

.row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.row__kicker {
  color: var(--white);
  font-size: 13px;
  background: var(--primary_orange);
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  padding: 6px 10px;
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.row__kicker-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.row__badge {
  color: var(--black);
  font-size: 13px;
  background: var(--white);
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  padding: 6px 10px;
  display: inline-block;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}

.row__badge--link {
  text-decoration: none;
}

.row__badge--link:hover {
  background: var(--primary_orange);
  color: var(--white);
}

.row__title {
  margin-top: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.row__meta {
  margin-top: 10px;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.row__text {
  margin-top: 10px;
  color: var(--black);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  border: var(--stroke) solid var(--black);
  transition: transform 90ms linear;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--primary_orange);
  color: var(--white);
}

.button--ghost {
  background: var(--black);
  color: var(--white);
}

.button--ghost:hover {
  background: var(--primary_orange);
  color: var(--white);
}

.empty {
  padding: 18px;
  border: var(--stroke) dashed var(--black);
  border-radius: var(--radius);
  color: var(--black);
  background: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.footer {
  border-top: var(--stroke) solid var(--primary_orange);
  background: var(--black);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.footer__org {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  opacity: 0.85;
  text-transform: none;
  letter-spacing: 0;
  max-width: 780px;
}

.footer__links a {
  color: var(--white);
  border-bottom: var(--stroke) solid var(--primary_orange);
  padding-bottom: 2px;
}

.footer__links a:hover {
  color: var(--primary_orange);
}

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

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

@media (max-width: 820px) {
  .grid--team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.team-card__media {
  border-bottom: var(--stroke) solid var(--black);
  background: #f3f4f6;
  overflow: hidden;
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.team-card__avatar--photo {
  transform: scale(1.18);
  transform-origin: 50% 18%;
}

.team-card__avatar--placeholder {
  object-fit: contain;
  object-position: 50% 50%;
  transform: none;
  background: #fff;
}

.team-card__body {
  text-align: center;
}

.team-card__name {
  font-weight: 900;
}

.sponsor-card {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.sponsor-card__link {
  display: grid;
  place-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sponsor-card__link:hover .sponsor-card__name {
  color: var(--primary_orange);
}

.sponsor-card__logo {
  width: min(220px, 100%);
  max-height: 90px;
  object-fit: contain;
}

.sponsor-card__name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.about {
  display: grid;
  gap: var(--gap);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 12px;
}

.about__block {
  padding: 12px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--black);
  background: var(--white);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--black);
}

.about__title {
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.about__list {
  margin: 0;
  padding-left: 18px;
  color: var(--black);
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.about__meta {
  margin-top: 14px;
  color: var(--black);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 18px;
}

.filters__field {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.filters__field--grow {
  flex: 1 1 320px;
}

.filters__field label {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.filters__field input,
.filters__field select {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--black);
  background: var(--white);
  font-weight: 900;
  font-size: 14px;
}

.filters__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.coaches {
  display: grid;
  gap: var(--gap);
}

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

.coach__avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: var(--stroke) solid var(--black);
  background: var(--white);
  flex: none;
  overflow: hidden;
}

.coach__avatar-wrap--lg {
  width: 96px;
  height: 96px;
}

.coach__avatar {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--white);
  object-fit: var(--avatar-fit, cover);
  object-position: var(--avatar-pos-x, 50%) var(--avatar-pos-y, 50%);
  transform: scale(var(--avatar-scale, 1));
  transform-origin: var(--avatar-pos-x, 50%) var(--avatar-pos-y, 50%);
}

.coach__header-text {
  min-width: 0;
}

.coach__title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.coach:hover {
  transform: translateY(-2px);
}

.coach {
  transition: transform 90ms linear;
  cursor: pointer;
}

.coach__subtitle {
  margin-top: 6px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.coach__field {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.coach__label {
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--primary_orange);
}

.coach__value {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.45;
}

.coach__links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.coach__reviews {
  margin-top: 14px;
  border-top: var(--stroke) solid var(--black);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.coach__reviews-toggle {
  width: fit-content;
  cursor: pointer;
}

.coach__reviews-toggle::-webkit-details-marker {
  display: none;
}

.coach__reviews > summary {
  list-style: none;
}

.coach__reviews-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  width: 100%;
}

.coach__review {
  border-left: var(--stroke) solid var(--black);
  padding: 10px 0 10px 14px;
}

.coach__review-header {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.45;
}

.coach__review-body {
  margin-top: 6px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .account-tiles {
    grid-template-columns: 1fr;
  }

  .account__grid {
    grid-template-columns: 1fr;
  }

  .account__grid--overview {
    grid-template-areas:
      "profile"
      "tiles"
      "status";
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-shell {
    padding: 0 16px;
  }

  .account-shell__inner {
    width: 100%;
  }

  .account-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .account-content {
    padding: 10px;
  }

  .account-nav__item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

  .account-profile__aside {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .account-profile__stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-profile__actions {
    margin-left: 0;
  }

  .grid--cards {
    grid-template-columns: 1fr;
  }
  .grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .grid--products {
    grid-template-columns: 1fr;
  }
  .hero__inner {
    padding: 22px;
  }
}

.hint {
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
}

.input {
  width: 100%;
  border: var(--stroke) solid var(--black);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--white);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 6px 6px 0 var(--black);
}

.input--static {
  background: #f6f6f6;
  box-shadow: none;
}

.input:focus {
  outline: none;
  border-color: var(--primary_orange);
}

.button--compact {
  padding: 10px 12px;
  font-size: 12px;
}

.protocol {
  overflow: hidden;
}

.participants .protocol {
  overflow: visible;
}

.protocol__toolbar {
  padding: 14px 14px 10px;
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: 1fr minmax(260px, 360px);
}

.protocol__search {
  justify-self: end;
  width: 100%;
}

@media (max-width: 760px) {
  .protocol__toolbar {
    grid-template-columns: 1fr;
  }
  .protocol__search {
    justify-self: stretch;
  }
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.protocol__content {
  padding: 14px;
}

.protocol--fullbleed .protocol__content {
  padding-left: 0;
  padding-right: 0;
}

.protocol--viewport80 .protocol__table-wrap {
  width: 100%;
}

.protocol--viewport80 .tabs {
  justify-content: flex-start;
}

.protocol__pane {
  display: none;
}

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

.protocol__table {
  display: none;
}

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

.protocol__table-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 6px 0 10px;
  flex-wrap: wrap;
}

.protocol__table-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.protocol__table-meta {
  font-weight: 900;
  font-size: 12px;
}

.protocol__table-wrap {
  border: var(--stroke) solid var(--black);
  border-radius: calc(var(--radius) - 4px);
  overflow: auto;
  background: var(--white);
  max-height: 520px;
}

.protocol--fullbleed .protocol__table-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-left-width: 0;
  border-right-width: 0;
  border-radius: 0;
}

.racers-page .protocol__table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.racers-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.racers-search .input {
  flex: 1 1 320px;
  min-width: 260px;
}

.racers-search .button {
  flex: 0 0 auto;
}

.participants .protocol__table-wrap {
  max-height: none;
}

.protocol--tall .protocol__table-wrap {
  max-height: 88vh;
  min-height: 0;
}

.protocol-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.participants [data-participants-pane="list"] .protocol-table {
  min-width: 0;
  table-layout: fixed;
}

@media (max-width: 760px) {
  .protocol--tall .protocol__table-wrap {
    max-height: 78vh;
    min-height: 0;
  }
}

.protocol-table thead th {
  position: sticky;
  top: 0;
  background: var(--black);
  color: var(--white);
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.protocol-table tbody td {
  padding: 10px 12px;
  border-top: 2px solid var(--black);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.participants [data-participants-pane="list"] .protocol-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.participants [data-participants-pane="teams"] .protocol-table,
.participants [data-participants-pane="cities"] .protocol-table {
  min-width: 0;
  table-layout: auto;
}

.participants [data-participants-pane="categories"] .protocol-table {
  min-width: 0;
  table-layout: fixed;
}

.participants [data-participants-pane="categories"] .protocol-table thead th,
.participants [data-participants-pane="categories"] .protocol-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participants [data-participants-pane="categories"] .protocol-table thead th:first-child,
.participants [data-participants-pane="categories"] .protocol-table tbody td:first-child {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  text-align: left;
}

.participants [data-participants-pane="categories"] .protocol-table thead th:nth-child(2),
.participants [data-participants-pane="categories"] .protocol-table tbody td:nth-child(2) {
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  text-align: left;
}

.participants [data-participants-pane="categories"] .protocol-table thead th:nth-child(3),
.participants [data-participants-pane="categories"] .protocol-table tbody td:nth-child(3) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  text-align: right;
}

.participants [data-participants-pane="prizes"] .protocol-table {
  min-width: 0;
  table-layout: fixed;
}

.participants [data-participants-pane="prizes"] .protocol-table thead th,
.participants [data-participants-pane="prizes"] .protocol-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participants [data-participants-pane="prizes"] .protocol-table thead th:first-child,
.participants [data-participants-pane="prizes"] .protocol-table tbody td:first-child {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  text-align: left;
}

.participants [data-participants-pane="prizes"] .protocol-table thead th:nth-child(2),
.participants [data-participants-pane="prizes"] .protocol-table tbody td:nth-child(2) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  text-align: left;
}

.participants [data-participants-pane="prizes"] .protocol-table thead th:nth-child(4),
.participants [data-participants-pane="prizes"] .protocol-table tbody td:nth-child(4) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  text-align: right;
}

.participants [data-participants-pane="prizes"] .protocol-table thead th:nth-child(5),
.participants [data-participants-pane="prizes"] .protocol-table tbody td:nth-child(5) {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  text-align: right;
}

.participants [data-participants-pane="teams"] .protocol-table thead th,
.participants [data-participants-pane="teams"] .protocol-table tbody td,
.participants [data-participants-pane="cities"] .protocol-table thead th,
.participants [data-participants-pane="cities"] .protocol-table tbody td {
  white-space: normal;
}

.participants [data-participants-pane="teams"] .protocol-table thead th:first-child,
.participants [data-participants-pane="teams"] .protocol-table tbody td:first-child,
.participants [data-participants-pane="cities"] .protocol-table thead th:first-child,
.participants [data-participants-pane="cities"] .protocol-table tbody td:first-child {
  width: auto;
  min-width: 0;
  max-width: none;
  text-align: left;
}

.protocol-table thead th:first-child,
.protocol-table tbody td:first-child {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  text-align: right;
}

.protocol-table thead th:first-child {
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.protocol-table thead th.protocol-col--bib,
.protocol-table tbody td.protocol-col--bib {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
  text-align: right;
}

.protocol-table thead th.protocol-col--bib {
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.participants .participant-col--bib {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
}

.participants .participant-col--team {
  width: 220px;
}

.participants .participant-col--distance {
  width: 210px;
}

@media (max-width: 760px) {
  body:has(main > section.section > .container > .section__header > a[href="/events"]) .container,
  body:has(main > section.section > .container > .section__header > a[href="/events"]) .container--protocol {
    width: min(1320px, calc(100% - 20px));
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .section {
    padding: 16px 0;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .section--tight {
    padding: 10px 0;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .section__header {
    margin-bottom: 10px;
    gap: 8px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .section__header h1,
  body:has(main > section.section > .container > .section__header > a[href="/events"]) .section__header h2 {
    font-size: 22px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .card__body {
    padding: 12px 12px 6px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .card__actions {
    padding: 10px 12px 12px;
    gap: 8px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .card__kicker {
    margin-bottom: 8px;
    font-size: 12px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .protocol__toolbar {
    padding: 10px 10px 8px;
    gap: 8px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .protocol__content {
    padding: 8px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .tabs {
    gap: 6px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .participants .button--compact {
    padding: 8px 10px;
    font-size: 11px;
  }

  body:has(main > section.section > .container > .section__header > a[href="/events"]) .participants .protocol-table thead th,
  body:has(main > section.section > .container > .section__header > a[href="/events"]) .participants .protocol-table tbody td {
    padding: 8px 9px;
  }
}

.teams-directory .protocol__table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.teams-directory__table {
  min-width: 1100px;
  table-layout: auto;
}

.teams-directory__table thead th,
.teams-directory__table tbody td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  line-height: 1.35;
}

.teams-directory__table thead th:first-child,
.teams-directory__table tbody td:first-child {
  width: auto;
  min-width: 240px;
  max-width: none;
  text-align: left;
}

.teams-directory__table--summary thead th:nth-child(2),
.teams-directory__table--summary tbody td:nth-child(2),
.teams-directory__table--summary thead th:nth-child(3),
.teams-directory__table--summary tbody td:nth-child(3) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  text-align: right;
  white-space: nowrap;
}

.teams-directory__table--summary thead th:nth-child(4),
.teams-directory__table--summary tbody td:nth-child(4) {
  min-width: 320px;
}

.teams-directory__table--cities thead th:nth-child(2),
.teams-directory__table--cities tbody td:nth-child(2),
.teams-directory__table--cities thead th:nth-child(3),
.teams-directory__table--cities tbody td:nth-child(3),
.teams-directory__table--cities thead th:nth-child(4),
.teams-directory__table--cities tbody td:nth-child(4) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  text-align: right;
  white-space: nowrap;
}

.teams-directory__table--cities thead th:nth-child(5),
.teams-directory__table--cities tbody td:nth-child(5) {
  min-width: 320px;
}

.teams-directory__table--members {
  min-width: 680px;
}

.teams-directory__table--members thead th:first-child,
.teams-directory__table--members tbody td:first-child {
  min-width: 420px;
}

.teams-directory__table--members thead th:nth-child(2),
.teams-directory__table--members tbody td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: right;
  white-space: nowrap;
}

.teams-directory__table--entries {
  min-width: 1280px;
}

.teams-directory__table--entries thead th:nth-child(2),
.teams-directory__table--entries tbody td:nth-child(2) {
  min-width: 320px;
}

.teams-directory__table--entries thead th:nth-child(3),
.teams-directory__table--entries tbody td:nth-child(3) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
}

.teams-directory__table--entries thead th:nth-child(4),
.teams-directory__table--entries tbody td:nth-child(4),
.teams-directory__table--entries thead th:nth-child(6),
.teams-directory__table--entries tbody td:nth-child(6) {
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  white-space: nowrap;
}

.teams-directory__table--entries thead th:nth-child(5),
.teams-directory__table--entries tbody td:nth-child(5) {
  min-width: 220px;
}

.teams-directory__aliases {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.teams-directory__team-cell {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.teams-directory__team-logo {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  object-fit: cover;
  background: #fff;
}

.teams-directory__team-logo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.45);
  background: rgba(15, 23, 42, 0.04);
  font-size: 13px;
}

.teams-directory__title {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.teams-directory__title-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  object-fit: cover;
  background: #fff;
}

.teams-directory__members {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teams-directory__member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
}

.teams-directory__member:hover {
  background: rgba(15, 23, 42, 0.05);
}

.teams-directory__table tbody td .hint {
  margin-top: 4px;
}

.teams-directory .link,
.teams-directory .link--inline {
  border-bottom: 0;
  padding-bottom: 0;
}

.teams-directory .racers-search + .hint {
  display: block;
  margin-top: 10px;
}

.racer-profile .protocol__table-wrap {
  max-height: none;
}

.racer-profile .protocol-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.racer-profile .protocol-table thead th.racer-col:not(.racer-col--race),
.racer-profile .protocol-table tbody td.racer-col:not(.racer-col--race) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.racer-profile .racer-col--race {
  min-width: 520px;
}

.racer-profile .racer-col--year,
.racer-profile .racer-col--place {
  width: 56px;
  text-align: right;
}

.racer-profile .protocol-table thead th.racer-col--race,
.racer-profile .protocol-table tbody td.racer-col--race {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
}

.racer-profile .racer-col--time,
.racer-profile .racer-col--speed {
  width: 64px;
}

.racer-profile .racer-col--category {
  width: 96px;
}

.racer-profile .racer-col--distance {
  width: 80px;
}

.racer-profile .racer-col--sheet {
  width: 96px;
}

.account .racer-profile .protocol__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.account .racer-profile .protocol-table {
  min-width: 1100px;
  table-layout: auto;
}

.account .racer-profile .racer-col--race {
  min-width: 320px;
}

.account .racer-profile .protocol-table thead th.racer-col--race,
.account .racer-profile .protocol-table tbody td.racer-col--race {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .racer-profile .protocol__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .racer-profile .protocol-table {
    width: 100%;
    min-width: 640px;
    table-layout: fixed;
  }

  .racer-profile .racer-col--race {
    min-width: 220px;
    max-width: 260px;
  }

  .racer-profile .protocol-table thead th.racer-col--race,
  .racer-profile .protocol-table tbody td.racer-col--race {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .racer-profile .racer-col--year,
  .racer-profile .racer-col--place,
  .racer-profile .racer-col--time,
  .racer-profile .racer-col--speed,
  .racer-profile .racer-col--category,
  .racer-profile .racer-col--distance,
  .racer-profile .racer-col--sheet {
    width: 64px;
  }
}

.racer-profile .aliases-table {
  min-width: 0;
  table-layout: fixed;
}

.racer-profile .aliases-table thead th,
.racer-profile .aliases-table tbody td {
  white-space: normal;
  word-break: break-word;
}

.racer-profile .aliases-table thead th:last-child,
.racer-profile .aliases-table tbody td:last-child {
  width: 55%;
}

.participants .participant-col--category {
  width: 120px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.participants .participant-col--city {
  width: 180px;
}

@media (max-width: 760px) and (hover: none) and (pointer: coarse) {
  .teams-directory__title-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .teams-directory__member {
    max-width: 100%;
  }

  .participants [data-participants-pane="list"] .protocol-table {
    min-width: 1030px;
    table-layout: fixed;
  }

  .participants .participant-col--bib {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .participants .participant-col--distance {
    width: 210px;
    min-width: 210px;
    max-width: 210px;
  }

  .participants .participant-col--category {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }

  .participants [data-participants-pane="list"] .participant-col--name {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .participants [data-participants-pane="list"] .protocol-table tbody td.participant-col--name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .participants [data-participants-pane="list"] .participant-col--team {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }

  .participants [data-participants-pane="list"] .participant-col--city {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
  }

  .participants [data-participants-pane="list"] .participant-col--distance {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }

  .participants [data-participants-pane="list"] .protocol-table tbody td.participant-col--distance {
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 760px) {
  .teams-directory .section__header {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .teams-directory__title {
    gap: 10px;
  }

  .teams-directory__title-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .teams-directory .protocol__table-wrap {
    overflow: visible;
  }

  .teams-directory__table,
  .teams-directory__table--summary,
  .teams-directory__table--members,
  .teams-directory__table--entries {
    min-width: 0;
    width: 100%;
  }

  .teams-directory__table thead {
    display: none;
  }

  .teams-directory__table tbody,
  .teams-directory__table tr,
  .teams-directory__table td {
    display: block;
    width: 100%;
  }

  .teams-directory__table tbody tr {
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .teams-directory__table tbody td {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 12px;
    text-align: left;
    width: auto;
    min-width: 0;
    max-width: none;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
  }

  .teams-directory__table--summary tbody td,
  .teams-directory__table--members tbody td,
  .teams-directory__table--entries tbody td {
    width: auto;
    min-width: 0;
    max-width: none;
    white-space: normal;
  }

  .teams-directory__table tbody td:last-child {
    border-bottom: 0;
  }

  .teams-directory__table tbody td::before {
    content: attr(data-label);
    flex: 0 0 96px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.66);
    line-height: 1.3;
  }

  .teams-directory__table tbody td > * {
    min-width: 0;
  }

  .teams-directory__table tbody td a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .teams-directory__team-cell {
    display: flex;
    width: 100%;
  }
}

.protocol-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.04);
}

.protocol-table tbody tr.is-hidden {
  display: none;
}

.embed {
  width: 100%;
  border: var(--stroke) solid var(--black);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--black);
}

.embed__iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 780px;
  max-width: 100%;
  border: 0;
}

@media (max-width: 760px) {
  .embed__iframe {
    height: 70vh;
    min-height: 520px;
  }
}

.card--embed .card__body {
  padding: 0;
}

.card--embed .embed {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.event-videos {
  display: grid;
  gap: 14px;
}

.event-video-card .embed__iframe {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.feed {
  display: grid;
  gap: 14px;
}

.feed__item .card__body {
  display: grid;
  gap: 10px;
}

.feed__title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.feed__meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

.feed__text {
  font-size: 16px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feed__images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.feed__image {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--stroke) solid var(--black);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--black);
}

.compare-watts {
  display: grid;
  gap: 12px;
}

.compare-watts__upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-watts__bulk-field {
  margin-top: 10px;
}

.compare-watts__upload-status {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}

.compare-watts__actions {
  justify-content: flex-start;
}

.compare-watts__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-watts__toggle {
  align-self: end;
}

.compare-watts__zoom-controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-watts__legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-watts__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.compare-watts__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.compare-watts__chart-wrap {
  margin-top: 10px;
  border: 2px solid var(--black);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  position: relative;
}

.compare-watts__chart-wrap canvas {
  width: 100%;
  height: 320px;
  display: block;
  cursor: crosshair;
}

.compare-watts__selection {
  position: absolute;
  display: none;
  pointer-events: none;
  border: 1px solid rgba(0, 146, 255, 0.9);
  background: rgba(0, 146, 255, 0.18);
  border-radius: 4px;
}

.compare-watts__cursor-line {
  position: absolute;
  display: none;
  pointer-events: none;
  width: 1px;
  background: rgba(0, 0, 0, 0.65);
}

.compare-watts__live {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  display: none;
  max-width: min(320px, calc(100% - 28px));
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
  pointer-events: none;
}

.compare-watts__live th,
.compare-watts__live td {
  padding: 4px 8px;
  white-space: nowrap;
}

.compare-watts__live-label {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  text-align: left;
}

.compare-watts__live-value {
  font-weight: 500;
  text-align: left;
}

.compare-watts__hover {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.72);
}

.compare-watts__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-watts__table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.compare-watts__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.compare-watts__table th,
.compare-watts__table td {
  border-top: 2px solid var(--black);
  padding: 8px 10px;
  text-align: left;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.compare-watts__table thead th {
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  text-transform: uppercase;
}

.compare-watts__stat {
  border: var(--stroke) solid var(--black);
  border-radius: 12px;
  padding: 10px;
  background: #f6f6f6;
}

.compare-watts__label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.72;
}

.compare-watts__value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
}

.compare-watts__value--small {
  font-size: 14px;
  line-height: 1.2;
  word-break: break-word;
}

.compare-watts__hint {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 980px) {
  .compare-watts__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .compare-watts__upload-grid,
  .compare-watts__controls {
    grid-template-columns: 1fr;
  }

  .compare-watts__zoom-controls {
    gap: 6px;
  }

  .compare-watts__stats {
    grid-template-columns: 1fr;
  }

  .compare-watts__chart-wrap canvas {
    height: 240px;
  }

  .compare-watts__value {
    font-size: 20px;
  }
}

.feed__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.feed__images--camp {
  grid-template-columns: minmax(180px, 1fr);
}

.feed__image--camp img {
  aspect-ratio: 16 / 8;
  max-height: 220px;
}

@media (max-width: 700px) {
  .feed__image--camp img {
    max-height: 170px;
  }
}

/* Marketplace */
.market-shell {
  display: grid;
  gap: 18px;
}

.market-page .section {
  padding-top: 20px;
}

.market-hero {
  position: relative;
  border: var(--stroke) solid var(--black);
  border-radius: 24px;
  background: var(--black);
  color: var(--white);
  box-shadow: 8px 8px 0 var(--black);
  padding: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.7fr 1fr;
  overflow: hidden;
}

.market-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 8px;
  border-radius: 999px;
  background: var(--primary_orange);
}

.market-hero__main,
.market-hero__stats {
  position: relative;
  z-index: 1;
}

.market-hero__eyebrow {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  opacity: 0.86;
}

.market-hero__title {
  margin: 4px 0 8px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

.market-hero__lead {
  margin: 0;
  max-width: 680px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.market-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}

.market-stat {
  border: var(--stroke) solid var(--white);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
  min-height: 92px;
}

.market-stat__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  opacity: 0.9;
}

.market-stat__value {
  margin-top: 6px;
  font-size: 52px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.market-stat__value--sm {
  display: block;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.05;
  text-transform: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.market-controls {
  border: var(--stroke) solid var(--black);
  border-radius: 22px;
  background: #ececec;
  box-shadow: 8px 8px 0 var(--black);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.market-search {
  display: grid;
  gap: 10px;
}

.market-search__field {
  display: block;
}

.market-search__input {
  height: 54px;
  border-radius: 22px;
  box-shadow: none;
  background: #e9e9e9;
}

.market-search__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.market-search__submit,
.market-search__reset {
  min-height: 48px;
  border-radius: 18px;
}

.market-search__submit {
  min-width: 132px;
}

.market-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-filter {
  display: grid;
  gap: 5px;
}

.market-filter__label {
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.market-filter__control {
  width: 100%;
  min-height: 48px;
  box-shadow: none;
  background: #ececec;
}

.market-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.market-tab {
  padding: 10px 14px;
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.market-tab:hover {
  background: var(--primary_orange);
  color: var(--white);
}

.market-tab--active {
  background: var(--black);
  color: var(--white);
}

.market-results-caption {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.market-results-meta {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.78;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@keyframes marketCardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.market-card {
  border: var(--stroke) solid var(--black);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: marketCardIn 260ms ease both;
}

.market-card:hover {
  transform: translateY(-2px);
}

.market-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #d9d9d9;
  border-bottom: var(--stroke) solid var(--black);
  overflow: hidden;
}

.market-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-card__photo--empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
}

.market-card__photo-top {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.market-card__price,
.market-card__photo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: var(--stroke) solid var(--white);
  background: rgba(0, 0, 0, 0.92);
  color: var(--white);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.market-card__price {
  padding: 7px 10px 6px;
  font-size: 18px;
}

.market-card__price--empty {
  font-size: 13px;
}

.market-card__photo-count {
  padding: 6px 8px;
  font-size: 12px;
}

.market-card__body {
  padding: 10px;
  display: grid;
  gap: 9px;
}

.market-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-pill {
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  padding: 4px 8px 3px;
  background: var(--primary_orange);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.market-pill--ghost {
  background: var(--white);
  color: var(--black);
}

.market-pill--dim {
  background: var(--black);
  color: var(--white);
}

.market-pill--warning {
  background: #fff86e;
  color: var(--black);
}

.market-card__title {
  font-size: 33px;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.market-card__snippet {
  font-size: 14px;
  line-height: 1.32;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.84);
}

.market-card__meta {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(0, 0, 0, 0.75);
}

.market-card--low-signal {
  opacity: 0.9;
}

.market-empty {
  border: var(--stroke) dashed var(--black);
  border-radius: 18px;
  background: var(--white);
  padding: 26px;
  box-shadow: 8px 8px 0 var(--black);
}

.market-empty--compact {
  padding: 16px;
}

.market-empty__title {
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}

.market-empty__text {
  margin-top: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.market-pager {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.market-pager__nav {
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 14px;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
}

.market-pager__nav:hover {
  background: var(--black);
  color: var(--white);
}

.market-pager__nav--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.market-pager__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.market-pager__page {
  min-width: 36px;
  height: 36px;
  border: var(--stroke) solid var(--black);
  border-radius: 999px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}

.market-pager__page:hover {
  background: var(--primary_orange);
  color: var(--white);
}

.market-pager__page--active {
  background: var(--black);
  color: var(--white);
}

.market-pager__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-weight: 900;
}

.market-detail-header {
  display: grid;
  gap: 6px;
}

.market-detail-header__back {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.market-detail-header__back:hover {
  color: var(--primary_orange);
}

.market-detail-header__title {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

.market-detail-header__meta {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.78;
}

.market-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}

.market-detail__main,
.market-detail__side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.market-gallery {
  display: grid;
  gap: 10px;
}

.market-gallery__lead,
.market-gallery__item {
  border: var(--stroke) solid var(--black);
  border-radius: 16px;
  background: #d9d9d9;
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--black);
}

.market-gallery__lead img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}

.market-gallery__thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.market-panel {
  border: var(--stroke) solid var(--black);
  border-radius: 16px;
  background: #ececec;
  box-shadow: 7px 7px 0 var(--black);
  padding: 12px;
}

.market-panel__title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 900;
}

.market-price-card__label {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.market-price-card__value {
  margin-top: 6px;
  font-size: 52px;
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.market-price-card__value--empty {
  font-size: 26px;
}

.market-detail__actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.market-detail__action {
  width: 100%;
}

.market-detail__description {
  white-space: pre-wrap;
  line-height: 1.35;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.market-kv {
  display: grid;
  gap: 4px;
}

.market-kv__row {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  display: grid;
  gap: 3px;
}

.market-kv__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.market-kv__k {
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.62;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.market-kv__v {
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.market-kv__link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.market-kv__link:hover {
  color: var(--primary_orange);
}

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

  .market-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .market-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 760px) {
  .market-shell {
    gap: 14px;
  }

  .market-hero {
    padding: 16px 14px;
    border-radius: 20px;
  }

  .market-hero__title {
    font-size: clamp(40px, 15vw, 56px);
  }

  .market-hero__lead {
    font-size: 16px;
    line-height: 1.2;
  }

  .market-stat {
    min-height: 86px;
  }

  .market-stat__value {
    font-size: 48px;
  }

  .market-stat__value--sm {
    font-size: 16px;
    line-height: 1.1;
  }

  .market-controls {
    padding: 10px;
    border-radius: 18px;
  }

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

  .market-search__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .market-search__submit,
  .market-search__reset {
    width: 100%;
  }

  .market-results-caption {
    font-size: 20px;
  }

  .market-pager {
    justify-content: center;
  }

  .market-pager__nav {
    flex: 1 1 100%;
    text-align: center;
  }

  .market-pager__pages {
    justify-content: center;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-card__title {
    font-size: clamp(30px, 9.2vw, 44px);
  }

  .market-detail-header__title {
    font-size: clamp(30px, 12vw, 46px);
  }

  .market-detail-header__meta {
    font-size: 13px;
    line-height: 1.2;
  }

  .market-panel__title {
    font-size: 26px;
  }

  .market-price-card__value,
  .market-kv__v {
    font-size: 34px;
  }

  .market-detail__description {
    font-size: 16px;
  }

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

.market-detail__side {
  grid-template-columns: 1fr;
}
}

.live-page {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.live-index {
  display: grid;
  gap: 20px;
}

.live-index__status {
  margin-bottom: 14px;
  color: rgba(17, 17, 17, 0.68);
  font-size: 14px;
}

.live-index__race-list {
  display: grid;
  gap: 12px;
}

.live-index-shell,
.live-race-shell {
  --live-blue-900: #1e3a8a;
  --live-blue-700: #2563eb;
  --live-blue-500: #3b82f6;
  --live-orange-500: #f97316;
  --live-bg: #eff6ff;
  --live-panel: rgba(255, 255, 255, 0.88);
  --live-panel-strong: rgba(255, 255, 255, 0.96);
  --live-border: rgba(37, 99, 235, 0.14);
  --live-shadow: 0 20px 60px rgba(30, 64, 175, 0.12);
}

.live-index-shell .container,
.live-race-shell .container {
  position: relative;
}

.live-index-shell::before,
.live-race-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 26%);
}

.live-index-shell .section__header,
.live-race-shell .section__header {
  position: relative;
  z-index: 1;
}

.live-index-shell .section__lead,
.live-race-shell .section__lead {
  position: relative;
  z-index: 1;
  max-width: 70ch;
  color: rgba(30, 58, 138, 0.82);
}

.live-index-shell h1,
.live-race-shell h1 {
  font-family: 'Fira Sans', 'IBM Plex Sans', system-ui, sans-serif;
  letter-spacing: -0.03em;
}

.live-race-page {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.live-index .card,
.live-race-page .card {
  border: 1px solid var(--live-border);
  background: linear-gradient(180deg, var(--live-panel-strong), var(--live-panel));
  box-shadow: var(--live-shadow);
  backdrop-filter: blur(14px);
}

.live-index .card__kicker,
.live-race-page .card__kicker {
  color: var(--live-blue-900);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  letter-spacing: 0.12em;
}

.live-index .button--ghost,
.live-race-page .button--ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--live-blue-900);
  border-color: rgba(37, 99, 235, 0.16);
}

.live-index .button--ghost:hover,
.live-race-page .button--ghost:hover {
  background: rgba(37, 99, 235, 0.1);
  color: var(--live-blue-900);
  border-color: rgba(37, 99, 235, 0.22);
}

.live-index .button--primary,
.live-race-page .button--primary {
  border-color: rgba(249, 115, 22, 0.16);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.18);
}

.live-index .link,
.live-race-page .link {
  color: var(--live-blue-900);
}

.live-race-page__sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
  position: sticky;
  top: 92px;
  align-self: start;
}

.live-race-page__map-wrap {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.live-race-page__map {
  min-height: calc(100vh - 240px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 28px 80px rgba(30, 64, 175, 0.18);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.04), rgba(30, 64, 175, 0.08));
}

.live-race-page__meta {
  display: grid;
  gap: 8px;
  color: rgba(30, 58, 138, 0.88);
  font-size: 14px;
  line-height: 1.5;
}

.live-race-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.live-replay {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.72));
}

.live-replay__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.live-replay__timestamp {
  font-size: 13px;
  color: rgba(30, 64, 175, 0.76);
  font-family: 'Fira Code', ui-monospace, monospace;
}

.live-replay__slider {
  width: 100%;
  accent-color: var(--live-orange-500);
}

.live-replay__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.live-replay__speed {
  width: auto;
  min-width: 74px;
}

.live-race-page__tracker-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.live-race-page__leaderboard {
  display: grid;
  gap: 8px;
}

.live-race-page__checkpoints {
  display: grid;
  gap: 8px;
}

.live-race-page__splits {
  display: grid;
  gap: 8px;
}

.live-race-page__alerts {
  display: grid;
  gap: 8px;
}

.live-checkpoint-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.live-checkpoint-row__name {
  font-weight: 700;
}

.live-checkpoint-row__meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.62);
}

.live-checkpoint-row__value {
  text-align: right;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.72);
}

.live-split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.live-split-row__name {
  font-weight: 700;
}

.live-split-row__meta,
.live-split-row__leader,
.live-split-row__focused {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.62);
}

.live-split-row__value {
  text-align: right;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.72);
  white-space: nowrap;
}

.live-alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
  border: 1px solid rgba(37, 99, 235, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.live-alert-row--high {
  background: rgba(215, 38, 61, 0.12);
}

.live-alert-row--medium {
  background: rgba(255, 138, 0, 0.1);
}

.live-alert-row__name {
  font-weight: 700;
}

.live-alert-row__meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.62);
}

.live-alert-row__value {
  text-align: right;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.72);
  text-transform: uppercase;
}

.live-leaderboard-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
  border: 1px solid rgba(37, 99, 235, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.live-leaderboard-row.is-focused {
  background: rgba(255, 92, 0, 0.12);
}

.live-leaderboard-row--warn {
  background: rgba(255, 138, 0, 0.1);
}

.live-leaderboard-row--offroute {
  background: rgba(215, 38, 61, 0.12);
}

.live-leaderboard-row__place {
  font-weight: 700;
  color: rgba(17, 17, 17, 0.72);
}

.live-leaderboard-row__name {
  font-weight: 700;
}

.live-leaderboard-row__meta {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(17, 17, 17, 0.62);
}

.live-leaderboard-row__value {
  text-align: right;
  font-size: 13px;
  color: rgba(17, 17, 17, 0.72);
}

.live-tracker-card {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.live-tracker-card:hover,
.live-tracker-card.is-focused {
  border-color: rgba(255, 92, 0, 0.44);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.live-tracker-card--warn {
  border-color: rgba(255, 138, 0, 0.34);
  background: rgba(255, 138, 0, 0.06);
}

.live-tracker-card--offroute {
  border-color: rgba(215, 38, 61, 0.42);
  background: rgba(215, 38, 61, 0.08);
}

.live-tracker-card__title {
  font-weight: 700;
}

.live-tracker-card__meta {
  margin-top: 4px;
  color: rgba(17, 17, 17, 0.62);
  font-size: 13px;
}

.live-page__sidebar {
  display: grid;
  gap: 20px;
}

.live-page__status {
  margin-bottom: 14px;
  color: rgba(30, 64, 175, 0.84);
  font-size: 13px;
  font-family: 'Fira Code', ui-monospace, monospace;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 32px rgba(30, 64, 175, 0.08);
}

.live-page__map-canvas {
  min-height: 540px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 92, 0, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.03), rgba(17, 17, 17, 0.08));
}

.live-page__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.live-page__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(30, 64, 175, 0.72);
}

.live-page__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.live-page__race-list {
  display: grid;
  gap: 12px;
}

.live-leaderboard-row:hover,
.live-alert-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.1);
  border-color: rgba(37, 99, 235, 0.18);
}

.live-tracker-card__title,
.live-leaderboard-row__name,
.live-checkpoint-row__name,
.live-split-row__name,
.live-alert-row__name {
  color: #0f172a;
}

.live-replay__controls .button,
.live-race-page__actions .button,
.live-race-page__actions .link {
  min-height: 44px;
}

.live-race-page .button:focus-visible,
.live-race-page .link:focus-visible,
.live-race-page select:focus-visible,
.live-race-page input:focus-visible,
.live-leaderboard-row:focus-visible,
.live-alert-row:focus-visible,
.live-tracker-card:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.65);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .live-race-page {
    grid-template-columns: 1fr;
  }

  .live-race-page__sidebar {
    position: static;
  }

  .live-race-page__map {
    min-height: 62vh;
  }
}

@media (max-width: 720px) {
  .live-replay__head,
  .live-replay__controls {
    align-items: stretch;
  }

  .live-replay__head {
    flex-direction: column;
  }

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

  .live-replay__speed {
    width: 100%;
    min-width: 0;
  }

  .live-race-page__map {
    min-height: 56vh;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-alert-row,
  .live-leaderboard-row,
  .live-tracker-card {
    transition: none;
  }
}

.live-race-card {
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.live-race-card:hover,
.live-race-card.is-selected {
  border-color: rgba(255, 92, 0, 0.44);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
}

.live-race-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.live-race-card__head h3 {
  margin: 0;
  font-size: 20px;
}

.live-race-card p {
  margin: 0 0 10px;
  color: rgba(17, 17, 17, 0.8);
}

.live-race-card__meta {
  color: rgba(17, 17, 17, 0.58);
  font-size: 13px;
}

.live-race-card__status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-race-card__status--active {
  background: rgba(0, 168, 107, 0.14);
  color: #057a55;
}

.live-race-card__status--draft {
  background: rgba(17, 17, 17, 0.08);
  color: rgba(17, 17, 17, 0.8);
}

.live-race-card__status--finished,
.live-race-card__status--archived {
  background: rgba(176, 17, 17, 0.1);
  color: #9c1c1c;
}

.live-race-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.live-form {
  display: grid;
  gap: 12px;
}

.live-form__actions {
  justify-content: flex-start;
}

.live-form__gpx {
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.live-form__checkbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 980px) {
  .live-page {
    grid-template-columns: 1fr;
  }

  .live-race-page {
    grid-template-columns: 1fr;
  }

  .live-page__map-canvas {
    min-height: 420px;
  }

  .live-race-page__map {
    min-height: 520px;
  }
}
