.home-redline {
  --home-panel-border: rgba(255, 255, 255, 0.08);
  --home-panel-border-strong: rgba(255, 255, 255, 0.12);
  --home-panel-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 18%),
    rgba(18, 18, 18, 0.92);
  --home-panel-surface-soft:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 22%),
    rgba(21, 21, 21, 0.86);
  --home-panel-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 22px 38px rgba(0, 0, 0, 0.16);
  background:
    linear-gradient(180deg, #070707 0%, #08090b 36%, #060708 100%);
}

.home-redline.page-shell-1180 .topbar-inner,
.home-redline.page-shell-1180 main {
  width: min(1280px, 100%);
}

.home-redline h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

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

.home-with-sidebar #categoryFilters {
  display: none;
}

.home-with-sidebar .filters {
  grid-template-columns: 1fr;
}

.home-with-sidebar {
  background-color: #0b0f14;
}

body.sidebar-lock {
  overflow: hidden;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 248px;
  padding: 18px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0f14;
  box-shadow: 18px 0 34px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  overscroll-behavior: contain;
}

.side-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 2px;
  padding-bottom: 22px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.04);
}

.side-nav-scroll::-webkit-scrollbar {
  width: 10px;
}

.side-nav-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.side-nav-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(11, 15, 20, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
}

.side-nav-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
}

.side-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.side-nav-title {
  font-family: var(--font-ui);
  color: #e8edf3;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav-close {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.side-nav-close:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fa;
}

.side-nav-section {
  margin-top: 12px;
}

.side-nav-subsection {
  margin-top: 2px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.side-nav-subsection-toggle {
  min-height: 32px;
  padding-inline: 6px;
  color: #a8b7c8;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.side-nav-subsection-body {
  margin-top: 6px;
  padding-left: 4px;
  max-height: 1200px;
}

.side-nav-subsection .side-nav-item {
  min-height: 36px;
  padding-left: 10px;
}

.side-nav-section-toggle,
.side-nav-item,
.side-nav-toggle {
  font: inherit;
}

.side-nav-section-toggle {
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #8d99a8;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
}

.side-nav-section-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5f8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.side-nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #6f7e90;
  font-size: 11px;
  font-weight: 900;
  transform: rotate(0deg);
  transform-origin: center;
  transition:
    color var(--transition-base),
    transform var(--transition-base);
}

.side-nav-section-toggle:hover .side-nav-chevron {
  color: #f2f5f8;
}

.side-nav-section.is-collapsed .side-nav-chevron {
  transform: rotate(-90deg);
}

.side-nav-section-body {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  max-height: 2200px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 260ms ease,
    margin-top 260ms ease,
    opacity 180ms ease,
    transform 260ms ease;
}

.side-nav-section.is-collapsed .side-nav-section-body {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
}

.side-nav-item {
  font-family: var(--font-ui);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #b7c1cf;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: left;
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.side-nav-item-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.side-nav-item-name {
  font-family: var(--font-ui);
  overflow: hidden;
  min-width: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.side-nav-item--primary .side-nav-item-name {
  font-weight: 800;
  text-transform: none;
}

.side-nav-item-label .category-badge {
  flex: 0 0 auto;
}

.side-nav-indicator {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #ffced1;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.side-nav-indicator.has-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
  content: "";
}

.side-nav-indicator.has-count {
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(229, 72, 77, 0.26);
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.12);
}

.side-nav-indicator.has-count::before {
  margin-right: 5px;
}

.side-nav-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
  border-left-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025) 58%, transparent),
    rgba(255, 255, 255, 0.015);
  color: #f2f4f7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.032),
    0 8px 18px rgba(0, 0, 0, 0.1);
}

.side-nav-item.active {
  border-color: rgba(255, 255, 255, 0.16);
  border-left-color: #f1f4f7;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035) 62%, transparent),
    rgba(255, 255, 255, 0.03);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 22px rgba(0, 0, 0, 0.16);
}

.side-nav-toggle,
.side-nav-backdrop {
  display: none;
}

@media (min-width: 900px) {
  .home-with-sidebar {
    padding-left: 248px;
  }

  .home-with-sidebar #statusFilters {
    justify-content: flex-end;
  }
}

@media (max-width: 899px) {
  .side-nav {
    width: min(260px, calc(100vw - 42px));
    box-shadow: 24px 0 46px rgba(0, 0, 0, 0.36);
    transform: translateX(-105%);
    transition: transform 260ms ease-out;
    will-change: transform;
  }

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

  .side-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .side-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
    color: #f1f4f7;
    cursor: pointer;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .side-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .side-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(2, 6, 10, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease-out;
  }

  .side-nav-backdrop.is-open,
  .side-nav-backdrop.overlay--visible {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

.side-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 44px;
  align-items: center;
  padding: 52px 0 36px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-kicker,
.section-kicker,
.summary-eyebrow {
  color: #9eaaba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 31ch;
  margin-top: 0;
  color: #b3bcc8;
  font-size: 16px;
  line-height: 1.6;
}

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

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-button--primary {
  background: #f2f4f7;
  border-color: #f2f4f7;
  color: #0c0d10;
  box-shadow: none;
}

.hero-button--primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.hero-button--ghost {
  background: transparent;
}

.hero-button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.hero-note {
  color: #7f8896;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-redline .category-badge {
  --category-badge-border: rgba(255, 255, 255, 0.14);
  --category-badge-text: #edf1f5;
  background: rgba(255, 255, 255, 0.02);
}

.home-redline .category-badge--active {
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.home-redline .status.scheduled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #edf1f5;
}

.home-redline .status.finished {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #cbd2db;
}

.home-redline [data-category-code] {
  --category-accent: #c7cdd6;
  --category-accent-soft: rgba(199, 205, 214, 0.12);
  --category-accent-wash: rgba(199, 205, 214, 0.07);
  --category-chip-bg: rgba(255, 255, 255, 0.03);
}

.home-redline [data-category-code="f1"] {
  --category-accent: #ff6a5a;
  --category-accent-soft: rgba(255, 106, 90, 0.18);
  --category-accent-wash: rgba(255, 106, 90, 0.08);
  --category-chip-bg: rgba(255, 106, 90, 0.07);
}

.home-redline [data-category-code="f2"] {
  --category-accent: #80a8ff;
  --category-accent-soft: rgba(128, 168, 255, 0.18);
  --category-accent-wash: rgba(128, 168, 255, 0.08);
  --category-chip-bg: rgba(128, 168, 255, 0.07);
}

.home-redline [data-category-code="f3"] {
  --category-accent: #a88cff;
  --category-accent-soft: rgba(168, 140, 255, 0.18);
  --category-accent-wash: rgba(168, 140, 255, 0.08);
  --category-chip-bg: rgba(168, 140, 255, 0.07);
}

.home-redline [data-category-code="motogp"] {
  --category-accent: #f1f4f7;
  --category-accent-soft: rgba(241, 244, 247, 0.14);
  --category-accent-wash: rgba(241, 244, 247, 0.05);
  --category-chip-bg: rgba(255, 255, 255, 0.05);
}

.home-redline [data-category-code="wec"] {
  --category-accent: #67d7ca;
  --category-accent-soft: rgba(103, 215, 202, 0.18);
  --category-accent-wash: rgba(103, 215, 202, 0.08);
  --category-chip-bg: rgba(103, 215, 202, 0.07);
}

.home-redline [data-category-code="tc"],
.home-redline [data-category-code="tcp"],
.home-redline [data-category-code="tcm"],
.home-redline [data-category-code="tcpm"],
.home-redline [data-category-code="tcpk"],
.home-redline [data-category-code="tcppk"],
.home-redline [data-category-code="tc2000"] {
  --category-accent: #f0b561;
  --category-accent-soft: rgba(240, 181, 97, 0.18);
  --category-accent-wash: rgba(240, 181, 97, 0.08);
  --category-chip-bg: rgba(240, 181, 97, 0.07);
}

.home-redline [data-category-code="tr"],
.home-redline [data-category-code="t4000"],
.home-redline [data-category-code="bora"] {
  --category-accent: #cfb38a;
  --category-accent-soft: rgba(207, 179, 138, 0.18);
  --category-accent-wash: rgba(207, 179, 138, 0.08);
  --category-chip-bg: rgba(207, 179, 138, 0.07);
}

.home-redline [data-category-code="tp"],
.home-redline [data-category-code="tpc1"],
.home-redline [data-category-code="tpc2"],
.home-redline [data-category-code="tpc3"] {
  --category-accent: #5ec5b8;
  --category-accent-soft: rgba(94, 197, 184, 0.18);
  --category-accent-wash: rgba(94, 197, 184, 0.08);
  --category-chip-bg: rgba(94, 197, 184, 0.07);
}

.home-redline [data-category-code="tn"],
.home-redline [data-category-code="tnc2"],
.home-redline [data-category-code="tnc3"] {
  --category-accent: #88cf7b;
  --category-accent-soft: rgba(136, 207, 123, 0.18);
  --category-accent-wash: rgba(136, 207, 123, 0.08);
  --category-chip-bg: rgba(136, 207, 123, 0.07);
}

.home-redline .category-badge[data-category-code] {
  border-color: var(--category-accent-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--category-chip-bg);
  color: var(--category-accent);
}

.home-redline .category-badge-link:hover {
  border-color: var(--category-accent-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--category-chip-bg);
}

.hero-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.summary {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--home-panel-border);
  border-radius: 22px;
  background: var(--home-panel-surface);
  box-shadow: var(--home-panel-shadow);
}

.summary-title {
  margin-top: 6px;
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.94;
  text-transform: uppercase;
}

.race-spotlight {
  margin-top: 0;
  margin-bottom: 0;
}

.next-races {
  margin-top: 0;
}

.home-categories,
.month-context,
.data-stage {
  margin-top: 30px;
}

.home-panel {
  position: relative;
  padding: 32px 34px 34px;
  border: 1px solid var(--home-panel-border);
  border-radius: 22px;
  background: var(--home-panel-surface);
  box-shadow: var(--home-panel-shadow);
}

.home-panel::before,
.summary::before,
.next-races::before,
.race-spotlight-card::before,
.month-calendar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  pointer-events: none;
}

.section-heading,
.data-stage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.section-display {
  margin: 8px 0 0;
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.7vw, 48px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-caption {
  margin: 0;
  align-self: center;
  color: #a3aebb;
  font-size: 15px;
  line-height: 1.6;
}

.home-panel .section-caption {
  max-width: 28ch;
}

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

.category-pill-groups {
  display: grid;
  gap: 18px;
}

.category-pill-group {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.category-pill-group + .category-pill-group {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.category-pill-group-label {
  color: #8c97a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #edf2f7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.category-pill:hover,
.category-pill--active {
  background: #f0f2f5;
  border-color: #f0f2f5;
  color: #0a0c0f;
}

.category-pill--f1 {
  border-color: rgba(255, 106, 90, 0.24);
  color: #ffd2cc;
  background: linear-gradient(180deg, rgba(255, 106, 90, 0.08), transparent);
}

.category-pill--motogp {
  border-color: rgba(241, 244, 247, 0.18);
  color: #f1f4f7;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.category-pill--wec {
  border-color: rgba(103, 215, 202, 0.24);
  color: #baf5ee;
  background: linear-gradient(180deg, rgba(103, 215, 202, 0.08), transparent);
}

.category-pill--f2,
.category-pill--f3 {
  border-color: rgba(128, 168, 255, 0.24);
  color: #d8e4ff;
  background: linear-gradient(180deg, rgba(128, 168, 255, 0.08), transparent);
}

.category-pill--tc {
  border-color: rgba(240, 181, 97, 0.24);
  color: #f6d7a8;
  background: linear-gradient(180deg, rgba(240, 181, 97, 0.08), transparent);
}

.category-pill--tn {
  border-color: rgba(136, 207, 123, 0.24);
  color: #d5f1cf;
  background: linear-gradient(180deg, rgba(136, 207, 123, 0.08), transparent);
}

.category-pill--tc2000 {
  border-color: rgba(123, 182, 255, 0.24);
  color: #dce8ff;
  background: linear-gradient(180deg, rgba(123, 182, 255, 0.08), transparent);
}

.home-redline .data-stage.home-panel {
  margin-top: 34px;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-redline .data-stage.home-panel::before {
  display: none;
}

.month-calendar {
  position: relative;
  padding: 24px 26px 22px;
  border: 1px solid var(--home-panel-border);
  border-radius: 20px;
  background: var(--home-panel-surface-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.month-calendar-shell {
  display: grid;
  gap: 18px;
}

.month-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.month-calendar-title {
  color: #f8fafc;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 0.94;
  text-transform: uppercase;
}

.month-calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-nav {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #f3f6fa;
  cursor: pointer;
  font: inherit;
}

.month-nav:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.month-link {
  color: #dce4ed;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.month-link:hover {
  color: #ffffff;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px 10px;
}

.month-weekday {
  color: #8f9aa8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.month-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  color: #f3f6f9;
  font: inherit;
  cursor: default;
}

.month-day.is-muted {
  color: #565f6c;
}

.month-day.has-event {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.month-day.has-event::after {
  position: absolute;
  inset: auto 8px 4px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  content: "";
}

.month-day.has-event[data-accent="f1"]::after {
  background: #ff6a5a;
}

.month-day.has-event[data-accent="motogp"]::after {
  background: #f1f4f7;
}

.month-day.has-event[data-accent="wec"]::after {
  background: #67d7ca;
}

.month-day.has-event[data-accent="tc"]::after,
.month-day.has-event[data-accent="tcp"]::after,
.month-day.has-event[data-accent="tcm"]::after,
.month-day.has-event[data-accent="tcpm"]::after,
.month-day.has-event[data-accent="tcpk"]::after,
.month-day.has-event[data-accent="tcppk"]::after,
.month-day.has-event[data-accent="tc2000"]::after {
  background: #f0b561;
}

.month-day.has-event[data-accent="tn"]::after,
.month-day.has-event[data-accent="tnc2"]::after,
.month-day.has-event[data-accent="tnc3"]::after {
  background: #88cf7b;
}

.month-day.has-event[data-accent="tp"]::after,
.month-day.has-event[data-accent="tpc1"]::after,
.month-day.has-event[data-accent="tpc2"]::after,
.month-day.has-event[data-accent="tpc3"]::after {
  background: #5ec5b8;
}

.month-day.has-event[data-accent="f2"]::after {
  background: #80a8ff;
}

.month-day.has-event[data-accent="f3"]::after,
.month-day.has-event[data-accent="tr"]::after,
.month-day.has-event[data-accent="t4000"]::after,
.month-day.has-event[data-accent="bora"]::after {
  background: #a88cff;
}

.month-day.is-selected {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.month-day:disabled {
  cursor: default;
}

.month-summary {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.month-summary-title {
  color: #dfe5ec;
  font-size: 12px;
  font-weight: 800;
}

.month-summary-line {
  color: #b4becb;
  font-size: 13px;
  line-height: 1.6;
}

.month-summary-line strong {
  color: #dfe5ec;
}

.filters {
  padding: 6px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
  gap: 8px;
}

.filter-button {
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #8f9baa;
  font-size: 10px;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.filter-button:hover,
.filter-button.active {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.hamburger-lines,
.hamburger-lines::before,
.hamburger-lines::after {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hamburger-lines {
  position: relative;
}

.hamburger-lines::before,
.hamburger-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.hamburger-lines::before {
  top: -5px;
}

.hamburger-lines::after {
  top: 5px;
}

.summary-status {
  font-family: var(--font-mono);
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.summary-status .api-state {
  color: var(--muted);
}

.last-updated {
  color: var(--faint);
  opacity: 0.78;
  white-space: nowrap;
}

.last-updated.is-error {
  color: #f1b7bb;
  opacity: 0.9;
}

.race-spotlight {
  margin-top: 0;
  margin-bottom: 0;
}

.race-spotlight-card {
  position: relative;
  display: block;
  border: 1px solid var(--home-panel-border);
  border-left: 4px solid rgba(124, 135, 152, 0.45);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 34%),
    var(--home-panel-surface-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 18px 30px rgba(0, 0, 0, 0.14);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.race-spotlight-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(29, 29, 29, 0.96);
  transform: translateY(-1px);
}

.race-spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.race-spotlight-label {
  color: #c4cfde;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.9;
  text-transform: uppercase;
}

.race-spotlight-main {
  display: grid;
  gap: 12px;
  padding: 14px 20px 22px;
}

.race-spotlight-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.race-spotlight-time {
  color: #c4cfde;
  font-size: 12px;
  font-weight: 800;
}

.race-spotlight-time .ui-icon-label {
  color: inherit;
}

.race-spotlight-event {
  color: #f8fafc;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

.race-spotlight-session {
  color: #d7dee7;
  font-size: 14px;
  font-weight: 700;
}

.race-spotlight-circuit {
  color: #94a0af;
  font-size: 13px;
  line-height: 1.5;
}

.race-spotlight-timing {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #eef2f5;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.96;
}

.race-spotlight-timing-label {
  color: #8f9baa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.race-spotlight-timing strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.race-spotlight-card.is-live .race-spotlight-timing {
  color: #ffe3e5;
  border-color: rgba(229, 72, 77, 0.24);
  background: rgba(229, 72, 77, 0.1);
}

.race-spotlight-card.is-live {
  border-left-color: var(--red);
  background: rgba(23, 17, 18, 0.94);
}

.board {
  display: grid;
  gap: 34px;
  padding-top: 22px;
}

.live-now-block {
  border: 1px solid rgba(229, 72, 77, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(229, 72, 77, 0.12), rgba(229, 72, 77, 0.03) 46%, transparent),
    rgba(22, 16, 17, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.live-now-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 4px;
  color: #ffe5e7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.live-now-list {
  display: grid;
  gap: 10px;
  padding: 10px 18px 18px;
}

.live-now-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 72, 77, 0.14);
  border-radius: 16px;
  border-left: 4px solid var(--red);
  background: rgba(229, 72, 77, 0.06);
  color: inherit;
  text-decoration: none;
}

.live-now-item:hover {
  border-color: rgba(229, 72, 77, 0.36);
  background: rgba(229, 72, 77, 0.1);
  transform: translateY(-1px);
}

.live-now-time {
  color: #ffe5e7;
  font-size: 12px;
  font-weight: 900;
}

.live-now-time .ui-inline-icon {
  color: #ffd3d6;
}

.live-now-main {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.live-now-event {
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-races {
  position: relative;
  margin-top: 18px;
  border: 1px solid var(--home-panel-border);
  border-radius: 22px;
  background: var(--home-panel-surface);
  box-shadow: var(--home-panel-shadow);
  overflow: hidden;
}

.next-races-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 0;
}

.next-races-list {
  display: grid;
  gap: 10px;
  padding: 16px 22px 22px;
}

.next-races-caption {
  margin-top: 6px;
  color: #8d98a6;
  font-size: 13px;
  line-height: 1.5;
}

.next-race-item {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  border-left: 4px solid rgba(124, 135, 152, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 100%),
    rgba(255, 255, 255, 0.016);
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.next-race-item:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
  box-shadow: none;
}

.next-race-item.is-live {
  border-left-color: var(--red);
  background: rgba(229, 72, 77, 0.05);
}

.next-race-time {
  display: grid;
  gap: 3px;
  color: #dce5ef;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.next-race-date {
  color: #dbe2eb;
  font-size: 11px;
  font-weight: 800;
}

.next-race-hour {
  color: #8f9baa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.next-race-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.next-race-category {
  display: inline-flex;
}

.next-race-event {
  overflow: hidden;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-race-session {
  overflow: hidden;
  color: #93a0ae;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-race-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.next-race-side:empty {
  display: none;
}

.day-block {
  display: grid;
  gap: 18px;
}

.sunday-block {
  gap: 20px;
}

.day-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sunday-title {
  color: #eef7ff;
}

.day-title-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.day-count {
  color: #98a4b3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-events {
  display: grid;
  gap: 14px;
}

.race-day-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe5ec;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.event-card {
  display: block;
  position: relative;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 16px 0 0 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.012), transparent 24%);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.event-card::before {
  position: absolute;
  inset: 16px auto 0 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--category-accent), transparent 92%);
  opacity: 0.72;
  content: "";
}

.event-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.024), transparent 28%);
  transform: none;
  box-shadow: none;
}

.event-card:hover .event-name {
  color: #ffffff;
}

.event-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 0 0 10px;
}

.event-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.event-name {
  overflow: hidden;
  font-family: var(--font-ui);
  color: #f8fafc;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.22;
  text-wrap: balance;
  text-overflow: ellipsis;
}

.circuit {
  overflow: hidden;
  color: #8d98a6;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.event-total {
  align-self: start;
  color: #8f9baa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-sessions {
  display: grid;
  gap: 0;
  padding: 0 0 2px;
}

.session-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 0;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.event-card .session-row {
  cursor: pointer;
}

.event-card .session-row:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 54%);
}

.session-row.feature {
  box-shadow: none;
}

.session-row.is-live {
  background:
    linear-gradient(90deg, rgba(229, 72, 77, 0.08), rgba(229, 72, 77, 0.02) 46%, transparent),
    transparent;
  box-shadow:
    inset 2px 0 0 rgba(229, 72, 77, 0.75);
}

.session-row.is-live:hover {
  background:
    linear-gradient(90deg, rgba(229, 72, 77, 0.1), rgba(229, 72, 77, 0.03) 46%, transparent),
    rgba(255, 255, 255, 0.012);
}

.session-row.feature .time,
.session-row.feature .session-name {
  color: #f8fafc;
  font-weight: 800;
}

.time {
  color: #c7d1dd;
  font-size: 11px;
  font-weight: 900;
  width: 60px;
  opacity: 0.96;
  white-space: nowrap;
}

.session-name {
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: #cbd3df;
  font-size: 12px;
  font-weight: 650;
}

.session-marker {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.event-card[data-category-code="f1"],
.next-race-item[data-category-code="f1"],
.race-spotlight-card[data-category-code="f1"],
.session-row.feature[data-category-code="f1"] {
  border-left-color: var(--f1);
}

.event-card[data-category-code="f2"],
.next-race-item[data-category-code="f2"],
.race-spotlight-card[data-category-code="f2"],
.session-row.feature[data-category-code="f2"] {
  border-left-color: var(--f2);
}

.event-card[data-category-code="f3"],
.next-race-item[data-category-code="f3"],
.race-spotlight-card[data-category-code="f3"],
.session-row.feature[data-category-code="f3"] {
  border-left-color: var(--f3);
}

.event-card[data-category-code="motogp"],
.next-race-item[data-category-code="motogp"],
.race-spotlight-card[data-category-code="motogp"],
.session-row.feature[data-category-code="motogp"] {
  border-left-color: #b4bcc8;
}

.event-card[data-category-code="wec"],
.next-race-item[data-category-code="wec"],
.race-spotlight-card[data-category-code="wec"],
.session-row.feature[data-category-code="wec"] {
  border-left-color: var(--wec);
}

.event-card[data-category-code="tc"],
.next-race-item[data-category-code="tc"],
.race-spotlight-card[data-category-code="tc"],
.session-row.feature[data-category-code="tc"] {
  border-left-color: #2f6ea7;
}

.event-card[data-category-code="tcp"],
.next-race-item[data-category-code="tcp"],
.race-spotlight-card[data-category-code="tcp"],
.session-row.feature[data-category-code="tcp"] {
  border-left-color: var(--tcp);
}

.event-card[data-category-code="tcm"],
.next-race-item[data-category-code="tcm"],
.race-spotlight-card[data-category-code="tcm"],
.session-row.feature[data-category-code="tcm"] {
  border-left-color: var(--tcm);
}

.event-card[data-category-code="tcpm"],
.next-race-item[data-category-code="tcpm"],
.race-spotlight-card[data-category-code="tcpm"],
.session-row.feature[data-category-code="tcpm"] {
  border-left-color: var(--tcpm);
}

.event-card[data-category-code="tcpk"],
.next-race-item[data-category-code="tcpk"],
.race-spotlight-card[data-category-code="tcpk"],
.session-row.feature[data-category-code="tcpk"] {
  border-left-color: var(--tcpu);
}

.event-card[data-category-code="tcppk"],
.next-race-item[data-category-code="tcppk"],
.race-spotlight-card[data-category-code="tcppk"],
.session-row.feature[data-category-code="tcppk"] {
  border-left-color: var(--tcppu);
}

.event-card[data-category-code="tc2000"],
.next-race-item[data-category-code="tc2000"],
.race-spotlight-card[data-category-code="tc2000"],
.session-row.feature[data-category-code="tc2000"] {
  border-left-color: var(--tc2000);
}

.event-card[data-category-code="tr"],
.next-race-item[data-category-code="tr"],
.race-spotlight-card[data-category-code="tr"],
.session-row.feature[data-category-code="tr"] {
  border-left-color: var(--tr);
}

.event-card[data-category-code="t4000"],
.next-race-item[data-category-code="t4000"],
.race-spotlight-card[data-category-code="t4000"],
.session-row.feature[data-category-code="t4000"] {
  border-left-color: var(--t4000);
}

.event-card[data-category-code="bora"],
.next-race-item[data-category-code="bora"],
.race-spotlight-card[data-category-code="bora"],
.session-row.feature[data-category-code="bora"] {
  border-left-color: var(--bora);
}

.event-card[data-category-code="tp"],
.next-race-item[data-category-code="tp"],
.race-spotlight-card[data-category-code="tp"],
.session-row.feature[data-category-code="tp"],
.event-card[data-category-code="tpc3"],
.next-race-item[data-category-code="tpc3"],
.race-spotlight-card[data-category-code="tpc3"],
.session-row.feature[data-category-code="tpc3"] {
  border-left-color: var(--tp-c3);
}

.event-card[data-category-code="tpc2"],
.next-race-item[data-category-code="tpc2"],
.race-spotlight-card[data-category-code="tpc2"],
.session-row.feature[data-category-code="tpc2"] {
  border-left-color: var(--tp-c2);
}

.event-card[data-category-code="tpc1"],
.next-race-item[data-category-code="tpc1"],
.race-spotlight-card[data-category-code="tpc1"],
.session-row.feature[data-category-code="tpc1"] {
  border-left-color: var(--tp-c1);
}

.event-card[data-category-code="tnc2"],
.next-race-item[data-category-code="tnc2"],
.race-spotlight-card[data-category-code="tnc2"],
.session-row.feature[data-category-code="tnc2"] {
  border-left-color: var(--tn-c2);
}

.event-card[data-category-code="tnc3"],
.next-race-item[data-category-code="tnc3"],
.race-spotlight-card[data-category-code="tnc3"],
.session-row.feature[data-category-code="tnc3"],
.event-card[data-category-code="tn"],
.next-race-item[data-category-code="tn"],
.race-spotlight-card[data-category-code="tn"],
.session-row.feature[data-category-code="tn"] {
  border-left-color: var(--tn);
}

.home-redline .event-card,
.home-redline .next-race-item,
.home-redline .race-spotlight-card,
.home-redline .session-row.feature {
  border-left-color: rgba(255, 255, 255, 0.18);
}

.home-redline .event-card[data-category-code],
.home-redline .next-race-item[data-category-code],
.home-redline .race-spotlight-card[data-category-code] {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    linear-gradient(90deg, var(--category-accent-wash), transparent 28%),
    rgba(23, 23, 23, 0.92);
}

.home-redline .event-card[data-category-code]::after,
.home-redline .next-race-item[data-category-code]::after,
.home-redline .race-spotlight-card[data-category-code]::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--category-accent), transparent);
  opacity: 0.5;
  pointer-events: none;
  content: "";
}

.home-redline .board .event-card[data-category-code] {
  background:
    linear-gradient(90deg, var(--category-accent-wash), transparent 24%),
    transparent;
}

.home-redline .board .event-card[data-category-code]::after {
  display: none;
}

.home-redline .board .event-card[data-category-code]:hover {
  background:
    linear-gradient(90deg, var(--category-accent-wash), transparent 28%),
    rgba(255, 255, 255, 0.012);
}

.home-redline .event-card[data-category-code]:hover,
.home-redline .next-race-item[data-category-code]:hover,
.home-redline .race-spotlight-card[data-category-code]:hover {
  border-color: var(--category-accent-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    linear-gradient(90deg, var(--category-accent-wash), transparent 32%),
    rgba(28, 28, 28, 0.96);
}

.home-redline .race-spotlight-card.is-live,
.home-redline .next-race-item.is-live,
.home-redline .session-row.is-live {
  border-left-color: var(--red);
}

.session-row.feature[data-category-code="f1"] .session-marker {
  background: var(--f1);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

.session-row.feature[data-category-code="f2"] .session-marker {
  background: var(--f2);
  box-shadow: 0 0 0 3px rgba(20, 136, 204, 0.12);
}

.session-row.feature[data-category-code="f3"] .session-marker {
  background: var(--f3);
  box-shadow: 0 0 0 3px rgba(70, 87, 217, 0.12);
}

.session-row.feature[data-category-code="motogp"] .session-marker {
  background: #b4bcc8;
  box-shadow: 0 0 0 3px rgba(180, 188, 200, 0.12);
}

.session-row.feature[data-category-code="wec"] .session-marker {
  background: var(--wec);
  box-shadow: 0 0 0 3px rgba(0, 161, 156, 0.12);
}

.session-row.feature[data-category-code="tc"] .session-marker {
  background: #2f6ea7;
  box-shadow: 0 0 0 3px rgba(47, 110, 167, 0.12);
}

.session-row.feature[data-category-code="tcp"] .session-marker {
  background: var(--tcp);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.session-row.feature[data-category-code="tcm"] .session-marker {
  background: var(--tcm);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.session-row.feature[data-category-code="tcpm"] .session-marker {
  background: var(--tcpm);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12);
}

.session-row.feature[data-category-code="tcpk"] .session-marker {
  background: var(--tcpu);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.session-row.feature[data-category-code="tcppk"] .session-marker {
  background: var(--tcppu);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.session-row.feature[data-category-code="tc2000"] .session-marker {
  background: var(--tc2000);
  box-shadow: 0 0 0 3px rgba(34, 193, 255, 0.12);
}

.session-row.feature[data-category-code="tr"] .session-marker {
  background: var(--tr);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.session-row.feature[data-category-code="t4000"] .session-marker {
  background: var(--t4000);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.session-row.feature[data-category-code="bora"] .session-marker {
  background: var(--bora);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.session-row.feature[data-category-code="tp"] .session-marker,
.session-row.feature[data-category-code="tpc3"] .session-marker {
  background: var(--tp-c3);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.12);
}

.session-row.feature[data-category-code="tpc2"] .session-marker {
  background: var(--tp-c2);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.session-row.feature[data-category-code="tpc1"] .session-marker {
  background: var(--tp-c1);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.session-row.feature[data-category-code="tnc2"] .session-marker {
  background: var(--tn-c2);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.session-row.feature[data-category-code="tnc3"] .session-marker,
.session-row.feature[data-category-code="tn"] .session-marker {
  background: var(--tn);
  box-shadow: 0 0 0 3px rgba(47, 168, 102, 0.12);
}

.home-redline .session-marker {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.home-redline .session-row.feature[data-category-code] .session-marker {
  background: var(--category-accent);
  box-shadow: 0 0 0 3px var(--category-accent-wash);
}

.home-redline .session-primary-tag,
.home-redline .race-day-tag {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #dfe5ec;
}

.home-redline .session-row.feature[data-category-code] .session-primary-tag {
  border-color: var(--category-accent-soft);
  background: var(--category-chip-bg);
  color: var(--category-accent);
}

.home-redline .side-nav-item.active .category-badge[data-category-code],
.home-redline .side-nav-item:hover .category-badge[data-category-code] {
  border-color: var(--category-accent-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--category-chip-bg);
  color: var(--category-accent);
}

.session-name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-primary-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dfe5ec;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.status {
  justify-self: end;
  align-self: center;
  min-height: 24px;
  padding: 0 9px;
  border-width: 1px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card > .winner-line {
  margin: 2px 0 2px 72px;
}

@media (max-width: 1100px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

}

@media (max-width: 720px) {
  .home-redline h1 {
    font-size: clamp(40px, 16vw, 58px);
    line-height: 0.94;
  }

  .home-hero {
    gap: 18px;
    padding-top: 8px;
  }

  .hero-copy {
    min-height: auto;
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-button {
    width: 100%;
  }

  .section-heading,
  .data-stage-head {
    grid-template-columns: 1fr;
  }

  .home-panel {
    padding: 22px 16px 20px;
    border-radius: 18px;
  }

  .home-redline .data-stage.home-panel {
    padding: 0 0 6px;
  }

  .month-calendar {
    padding: 18px 14px 16px;
  }

  .month-calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .month-calendar-actions {
    flex-wrap: wrap;
  }

  .month-grid {
    gap: 10px 4px;
  }

  .month-weekday,
  .month-day {
    font-size: 11px;
  }

  .month-day {
    min-height: 34px;
  }

  .category-pills {
    gap: 8px;
  }

  .summary {
    padding: 16px;
    border-radius: 18px;
  }

  .summary-title {
    font-size: 28px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    margin-left: 0;
  }

  .tagline {
    display: none;
  }

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

  .api-state {
    text-align: left;
  }

  .summary-status {
    justify-items: start;
    text-align: left;
  }

  .last-updated {
    white-space: normal;
  }

  .event-head {
    grid-template-columns: auto 1fr;
  }

  .event-total {
    grid-column: 2;
  }

  .day-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .next-race-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .next-race-side {
    justify-content: flex-start;
  }

  .live-now-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .live-now-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-now-event {
    white-space: normal;
  }

  .session-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 5px 8px;
    align-items: start;
  }

  .time {
    width: 56px;
  }

  .status {
    grid-column: 2;
    justify-self: start;
  }

  .event-card > .winner-line {
    margin-left: 64px;
  }

  .event-name,
  .circuit,
  .session-name,
  .next-race-event,
  .next-race-session,
  .race-spotlight-event {
    white-space: normal;
  }
}
