:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-strong: rgba(255, 255, 255, 0.99);
  --line: rgba(24, 38, 52, 0.12);
  --text: #172332;
  --muted: #667482;
  --accent: #d65f1f;
  --accent-soft: #f07a22;
  --shadow: rgba(24, 38, 52, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 122, 34, 0.14), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 246, 0.98)),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(23, 35, 50, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 50, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

.live-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 18px;
  align-items: start;
}

.live-menu a {
  display: grid;
  gap: 4px;
}

.live-menu small {
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-panel {
  min-height: 360px;
}

.live-heading {
  align-items: center;
}

.live-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.live-clock {
  display: grid;
  gap: 4px;
  justify-items: end;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.live-clock strong {
  color: var(--text);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 26px;
}

.live-updated-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 16px 12px;
  color: rgba(102, 116, 130, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.live-updated-foot strong {
  color: rgba(23, 35, 50, 0.64);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.78rem;
}

.live-table th:first-child,
.live-table td:first-child,
.live-table th:nth-child(2),
.live-table td:nth-child(2),
.live-table th:nth-child(5),
.live-table td:nth-child(5),
.live-table th:last-child,
.live-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.live-table td {
  font-size: clamp(15px, 1.35vw, 22px);
}

.live-table th:nth-child(4),
.live-table td:nth-child(4) {
  min-width: 145px;
  padding-right: 18px;
}

.live-table th:nth-child(5),
.live-table td:nth-child(5) {
  padding-left: 18px;
  text-align: center;
}

.live-table td:nth-child(6),
.live-table td:last-child {
  color: var(--accent-soft);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(18px, 2.1vw, 30px);
}

.event-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: end;
  min-height: 148px;
  padding: 18px 26px;
  margin-bottom: 40px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px var(--shadow);
}

.event-hero--home {
  min-height: 230px;
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-soft);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.95;
  font-weight: 600;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 16px 24px;
  align-items: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta-item {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.meta-item + .meta-item::before {
  color: rgba(23, 35, 50, 0.28);
  content: "/";
  margin-right: 4px;
}

.meta-icon {
  display: inline-block;
}

.meta-icon--race {
  position: relative;
  width: 28px;
  height: 24px;
  border-left: 3px solid var(--muted);
  opacity: 0.72;
}

.meta-icon--race::before {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 21px;
  height: 15px;
  background:
    conic-gradient(var(--muted) 25%, transparent 0 50%, var(--muted) 0 75%, transparent 0)
      0 0 / 7px 7px,
    rgba(255, 255, 255, 0.06);
  content: "";
}

.flag-ar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f6c44c 0 10%, transparent 11%),
    linear-gradient(#75aadb 0 33%, #fff 34% 66%, #75aadb 67%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.live-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.84);
  padding: 0 15px;
  color: var(--text);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.live-button::before {
  content: "[ ]";
  margin-right: 8px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.sessions-counter {
  color: var(--muted);
  font-size: 1rem;
}

.sessions-counter strong {
  display: block;
  color: var(--text);
  font-size: 1.4rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

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

.listing-card {
  display: grid;
  min-height: 210px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 38, 52, 0.1);
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.listing-card:hover {
  background: #fff7ef;
  transform: translateY(-2px);
}

.listing-card-main {
  display: grid;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.listing-card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.secondary-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(23, 35, 50, 0.16);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.secondary-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(214, 95, 31, 0.38);
}

.listing-card strong {
  display: block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.listing-card span:not(.listing-kicker),
.listing-card small {
  color: var(--muted);
  font-weight: 700;
}

.listing-kicker {
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-heading {
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 38, 52, 0.1);
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.category-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 38, 52, 0.1);
}

.category-card h2 {
  margin: 0;
  padding: 5px 16px 6px;
  color: var(--text);
  font-size: 1.48rem;
  line-height: 1;
}

.session-list {
  display: grid;
}

.session-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px 38px minmax(120px, 1fr) auto 20px;
  gap: 12px;
  align-items: center;
  min-height: 45px;
  border-top: 1px solid var(--line);
  padding: 0 14px 0 18px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.session-row::after {
  width: 11px;
  height: 11px;
  border-top: 3px solid rgba(174, 185, 196, 0.45);
  border-right: 3px solid rgba(174, 185, 196, 0.45);
  content: "";
  transform: rotate(45deg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.session-row:hover {
  background: rgba(242, 103, 34, 0.12);
}

.session-row:hover::after {
  border-color: var(--accent-soft);
  transform: translateX(3px) rotate(45deg);
}

.session-row--plain {
  grid-template-columns: 38px minmax(120px, 1fr) auto 20px;
  color: var(--muted);
}

.session-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

time {
  color: var(--text);
  font-weight: 800;
  text-transform: none;
  white-space: nowrap;
}

time::before {
  color: var(--muted);
  content: "Ayer ";
  font-weight: 400;
}

.session-type,
.session-flag {
  display: inline-block;
  justify-self: center;
}

.session-type {
  position: relative;
  width: 28px;
  height: 28px;
  opacity: 0.62;
}

.timer {
  border: 3px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
}

.timer::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 10px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.timer::after {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 9px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

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

.cup::before {
  display: block;
  width: 22px;
  height: 14px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  content: "";
}

.cup::after {
  display: block;
  width: 3px;
  height: 10px;
  margin: 0 auto;
  background: currentColor;
  box-shadow: -8px 10px 0 -1px currentColor, 8px 10px 0 -1px currentColor;
  content: "";
}

.session-flag {
  position: relative;
  width: 28px;
  height: 30px;
  border-left: 4px solid #fff;
}

.session-flag::before {
  position: absolute;
  top: 0;
  left: 4px;
  width: 24px;
  height: 18px;
  background:
    conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0)
      0 0 / 8px 8px,
    #172332;
  content: "";
}

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

.results-menu,
.results-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 38, 52, 0.1);
}

.results-menu {
  overflow: hidden;
}

.results-menu h2,
.results-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.results-menu h2 {
  padding: 14px 16px;
}

.results-menu a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.menu-group {
  border-top: 1px solid var(--line);
}

.results-menu .menu-group > a {
  border-top: 0;
}

.menu-subitems {
  display: grid;
  padding: 0 0 8px;
  background: rgba(214, 95, 31, 0.06);
}

.results-menu .menu-subitems a {
  position: relative;
  border-top: 0;
  padding: 9px 14px 9px 34px;
  color: var(--muted);
  font-size: 0.88rem;
}

.results-menu .menu-subitems a::before {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 8px;
  height: 1px;
  background: rgba(23, 35, 50, 0.34);
  content: "";
}

.results-menu a:hover,
.results-menu a.is-active {
  color: var(--text);
  background: rgba(242, 103, 34, 0.14);
}

.results-menu .menu-subitems a.is-active {
  color: var(--accent);
  background: rgba(242, 103, 34, 0.18);
}

.results-panel {
  overflow: hidden;
}

.championship-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.championship-card {
  display: grid;
  gap: 16px;
  min-height: 310px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(24, 38, 52, 0.1);
}

.championship-card__top,
.runner-box {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.championship-card__top {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.championship-card__top strong {
  color: var(--accent);
}

.championship-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.leader-box {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #172332, #26384d);
}

.leader-box span,
.runner-box span {
  color: #ffb24d;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-box strong {
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.leader-box em,
.runner-box em {
  color: #ffb24d;
  font-style: normal;
  font-weight: 900;
}

.runner-box {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.runner-box strong {
  flex: 1;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.championship-card__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid rgba(214, 95, 31, 0.35);
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.championship-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
}

.results-panel .championship-table th,
.results-panel .championship-table td {
  padding: 12px 16px;
}

.results-panel .championship-table th:nth-child(4),
.results-panel .championship-table td:nth-child(4) {
  min-width: 0;
  padding-left: 16px;
  padding-right: 16px;
  text-align: left;
}

.results-panel .championship-table .col-pos {
  width: 60px;
}

.results-panel .championship-table .col-number {
  width: 78px;
}

.results-panel .championship-table .col-pilot {
  width: 40%;
  min-width: 330px;
  max-width: none;
}

.results-panel .championship-table .col-city {
  width: 240px;
  min-width: 170px;
  max-width: none;
}

.results-panel .championship-table th:nth-child(5),
.results-panel .championship-table td:nth-child(5),
.results-panel .championship-table th:nth-child(6),
.results-panel .championship-table td:nth-child(6) {
  width: 96px;
  text-align: right;
}

.pilot-wins {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  margin-left: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.trophy {
  display: inline-block;
  margin-right: 3px;
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(24, 38, 52, 0.18));
}

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

.championship-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(24, 38, 52, 0.18);
  background: rgba(255, 255, 255, 0.72);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.championship-actions a.is-active {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.championship-table--detail {
  min-width: 1040px;
}

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

.results-panel .championship-table--detail .col-pilot,
.results-panel .championship-table--detail td:nth-child(3) {
  width: 280px;
  min-width: 260px;
  text-align: left;
}

.championship-table--detail .date-group {
  color: var(--text);
  background: rgba(242, 103, 34, 0.08);
  border-left: 1px solid rgba(242, 103, 34, 0.22);
  border-right: 1px solid rgba(242, 103, 34, 0.22);
}

.points-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 14px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.points-legend strong {
  color: var(--text);
}

.ranking-filter {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 35, 50, 0.12);
}

.ranking-filter label {
  display: grid;
  gap: 6px;
  min-width: min(100%, 320px);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ranking-filter select {
  min-height: 42px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 850;
  text-transform: uppercase;
}

.ranking-groups {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.ranking-group {
  overflow: hidden;
  border: 1px solid rgba(23, 35, 50, 0.12);
  background: #fff;
}

.ranking-group-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: var(--text);
  background: #fff;
  border-bottom: 1px solid rgba(23, 35, 50, 0.12);
}

.ranking-group-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  line-height: 1;
  text-transform: uppercase;
}

.ranking-group-head span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ranking-table th,
.ranking-table td {
  padding: 12px 14px;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
  width: 82px;
  text-align: center;
}

.ranking-table td:first-child {
  color: var(--accent);
  font-weight: 950;
}

@media (max-width: 720px) {
  .ranking-filter {
    padding: 12px;
  }

  .ranking-groups {
    gap: 12px;
    padding: 12px;
  }

  .ranking-group-head {
    padding: 12px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 10px 8px;
    font-size: 0.86rem;
  }

  .ranking-table th:first-child,
  .ranking-table td:first-child {
    width: 54px;
  }
}

.admin-points-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.admin-points-page .page-shell {
  width: min(1540px, calc(100% - 48px));
}

.admin-hero {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 230px;
  margin-bottom: 34px;
  padding: 38px 42px;
  background:
    linear-gradient(110deg, rgba(23, 35, 50, 0.98), rgba(32, 48, 66, 0.96)),
    #172332;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px rgba(24, 38, 52, 0.18);
}

.admin-hero h1 {
  margin: 2px 0 0;
  color: #fff;
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(4.2rem, 7.2vw, 7.1rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.admin-hero .eyebrow {
  color: #ffb15f;
}

.admin-version {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(214, 95, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-points-page .live-button {
  background: #fff;
  color: #172332;
  border-color: rgba(255, 255, 255, 0.72);
}

.admin-points-page .live-button--plain {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-home-card {
  display: grid;
  gap: 12px;
  min-height: 250px;
  align-content: start;
  padding: 28px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(24, 38, 52, 0.12);
  box-shadow: 0 18px 34px rgba(24, 38, 52, 0.1);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 95, 31, 0.38);
  box-shadow: 0 22px 42px rgba(24, 38, 52, 0.14), inset 0 5px 0 var(--accent);
}

.admin-home-card span {
  width: fit-content;
  padding: 6px 10px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-home-card strong {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.admin-home-card small,
.auth-note {
  color: #5f6e7d;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.admin-points-layout .side-panel {
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(24, 38, 52, 0.1);
}

.admin-side-title {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  color: #fff;
  background:
    linear-gradient(90deg, #172332, #223246),
    #172332;
  border-bottom: 1px solid var(--line);
}

.admin-side-title h2 {
  margin: 0;
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: 1.34rem;
  letter-spacing: 0;
}

.admin-side-title span,
.admin-side-note {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.admin-championship-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-championship-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 74px;
  align-content: center;
  padding: 13px 16px 13px 20px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(24, 38, 52, 0.1);
  box-shadow: inset 5px 0 0 rgba(96, 111, 127, 0.24);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-championship-card strong {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: 1.18rem;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.admin-championship-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-championship-card:hover,
.admin-championship-card.is-active {
  border-color: rgba(214, 95, 31, 0.35);
  background:
    linear-gradient(90deg, rgba(214, 95, 31, 0.18), rgba(255, 255, 255, 0.98));
  box-shadow: inset 5px 0 0 var(--accent);
}

.admin-championship-card.is-paused {
  opacity: 0.66;
  box-shadow: inset 4px 0 0 rgba(120, 120, 120, 0.48);
}

.admin-championship-card.is-paused span {
  color: #9b4a35;
}

.admin-side-note {
  margin: 0;
  padding: 15px 20px 18px;
  color: var(--muted);
  background: rgba(24, 38, 52, 0.035);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-points-heading {
  min-height: 142px;
  align-items: center;
  padding: 24px 26px;
  background:
    linear-gradient(110deg, rgba(214, 95, 31, 0.08), transparent),
    #fff;
}

.admin-points-heading h2 {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 10px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-status-pill.is-on {
  background: #17823b;
}

.admin-status-pill.is-off {
  background: #9b3424;
}

.points-form {
  display: grid;
  gap: 20px;
  padding: 24px 26px 28px;
  border-top: 1px solid var(--line);
}

.points-check {
  display: flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 12px 14px;
  background: rgba(23, 130, 59, 0.08);
  border: 1px solid rgba(23, 130, 59, 0.18);
  color: var(--text);
  font-weight: 900;
}

.points-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

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

.points-grid label {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 156px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #172332;
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.points-grid input {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(24, 38, 52, 0.18);
  font: inherit;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.points-grid small {
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: none;
}

.results-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 18px;
}

.results-heading span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.download-pdf {
  min-height: 38px;
  margin-top: 14px;
  border: 1px solid rgba(255, 180, 90, 0.82);
  padding: 0 15px;
  color: #fff;
  background: var(--accent);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.download-pdf:hover {
  border-color: var(--accent-soft);
  background: #b94e18;
  color: #fff;
}

.download-pdf:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-edit-hint {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 12px 0 0 10px;
  padding: 0 10px;
  color: #fff;
  background: rgba(23, 35, 50, 0.34);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.is-admin-view .is-editable-cell {
  cursor: pointer;
}

.is-admin-view .is-editable-cell:hover {
  outline: 2px solid rgba(227, 5, 24, 0.38);
  outline-offset: -2px;
  background: rgba(227, 5, 24, 0.05) !important;
}

.results-panel.is-exporting-pdf {
  width: max-content;
  min-width: 1100px;
}

.results-panel.is-exporting-pdf .table-wrap {
  overflow: visible;
}

.results-panel.is-exporting-pdf table {
  width: max-content;
}

.results-panel.is-exporting-pdf th:first-child,
.results-panel.is-exporting-pdf td:first-child {
  position: static;
}

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

.auth-panel {
  width: min(460px, 100%);
  padding: 34px;
  color: #172332;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 35, 50, 0.12);
  box-shadow: 0 22px 56px rgba(23, 35, 50, 0.16);
}

.auth-panel h1 {
  margin: 0 0 14px;
  color: #172332;
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.auth-panel .eyebrow {
  color: var(--vicron-red, var(--accent));
}

.auth-panel a {
  display: inline-block;
  margin-top: 18px;
  color: var(--vicron-red, var(--accent));
  font-weight: 800;
  text-decoration: none;
}

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

.auth-form label {
  display: grid;
  gap: 7px;
  color: #4d5b68;
  font-weight: 900;
}

.auth-form input {
  min-height: 52px;
  padding: 12px 14px;
  color: #172332;
  background: #fff;
  border: 2px solid rgba(23, 35, 50, 0.28);
  border-radius: 8px;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  caret-color: var(--vicron-red, var(--accent));
}

.auth-form input:focus {
  outline: 3px solid rgba(227, 5, 24, 0.18);
  border-color: var(--vicron-red, var(--accent));
}

.auth-form button {
  min-height: 52px;
  margin-top: 8px;
  color: #fff;
  background: linear-gradient(180deg, var(--vicron-red, var(--accent)), var(--vicron-orange, var(--accent-soft)));
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.form-error {
  padding: 12px 14px;
  color: #ffd6d0;
  background: rgba(180, 44, 28, 0.22);
  border: 1px solid rgba(255, 130, 110, 0.3);
}

.form-success {
  padding: 12px 14px;
  color: #d8f8df;
  background: rgba(50, 145, 78, 0.2);
  border: 1px solid rgba(120, 220, 145, 0.3);
}

.pilot-panel {
  margin-top: 28px;
}

.pilot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.pilot-stats div {
  padding: 16px;
  background: rgba(32, 42, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.pilot-stats span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.pilot-stats strong {
  display: block;
  margin-top: 5px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 38px;
}

.pilot-section {
  margin-top: 24px;
}

.pilot-section h3 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.pilot-corrections {
  margin: 22px 0 28px;
  padding: 18px;
  background: rgba(255, 244, 224, 0.12);
  border: 1px solid rgba(255, 183, 82, 0.38);
}

.pilot-corrections h3 {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.pilot-corrections p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.pilot-correction-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pilot-correction-item span,
.pilot-correction-item small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.pilot-correction-item strong {
  display: block;
  margin: 4px 0;
}

.pilot-correction-item button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(32, 42, 53, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-tabs a.is-active {
  color: #fff;
  background: rgba(242, 103, 34, 0.9);
  border-color: var(--accent-soft);
}

.admin-correction-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(32, 42, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-correction-card span,
.admin-correction-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-correction-card strong {
  display: block;
  margin: 5px 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-actions button {
  min-height: 38px;
  padding: 0 13px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-table-wrap {
  overflow-x: auto;
  background: rgba(32, 42, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table th {
  color: var(--accent-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
}

.admin-table button {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-table--pilots td strong {
  font-weight: 900;
}

.admin-row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.admin-row-actions button {
  width: 86px;
  padding: 0 8px;
}

.admin-pilot-list {
  display: grid;
  gap: 12px;
}

.admin-pilot-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(360px, 2fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(32, 42, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-pilot-main span,
.admin-pilot-main small,
.admin-pilot-data span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.admin-pilot-main strong {
  display: block;
  margin: 4px 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  text-transform: uppercase;
}

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

.admin-pilot-data strong {
  display: block;
  margin-top: 3px;
}

.admin-pilot-actions {
  display: grid;
  gap: 8px;
}

.admin-pilot-actions button {
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.pilot-match-list {
  display: grid;
  gap: 10px;
}

.pilot-match-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(32, 42, 53, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.pilot-match-card:hover {
  border-color: rgba(242, 103, 34, 0.55);
  background: rgba(62, 48, 46, 0.94);
}

.pilot-match-card span,
.pilot-match-card small {
  color: var(--muted);
  font-weight: 800;
}

.pilot-match-card strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
}

.empty-state {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  overflow-x: hidden;
  border-top: 1px solid var(--line);
}

.table-wrap--compact {
  border-top: 0;
}

table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: fixed;
}

.results-panel table th:nth-child(4),
.results-panel table td:nth-child(4) {
  min-width: 0;
  padding-right: 12px;
}

.results-panel table th:nth-child(5),
.results-panel table td:nth-child(5) {
  padding-left: 20px;
  text-align: center;
}

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

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 54px;
  width: 54px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 1px 0 0 var(--line);
}

th:first-child {
  z-index: 3;
  background: #fff;
}

.live-page .live-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.live-page .live-table th,
.live-page .live-table td {
  padding: 9px 10px;
}

.live-page .live-table th:first-child,
.live-page .live-table td:first-child {
  width: 46px;
  min-width: 46px;
}

.live-page .live-table th:nth-child(2),
.live-page .live-table td:nth-child(2) {
  width: 70px;
}

.live-page .live-table th:nth-child(3),
.live-page .live-table td:nth-child(3) {
  width: 30%;
}

.live-page .live-table th:nth-child(4),
.live-page .live-table td:nth-child(4) {
  width: 22%;
  min-width: 0;
  padding-right: 10px;
}

.live-page .live-table th:nth-child(5),
.live-page .live-table td:nth-child(5) {
  width: 76px;
  padding-left: 6px;
  text-align: center;
}

.live-page .live-table th:nth-child(6),
.live-page .live-table td:nth-child(6),
.live-page .live-table th:nth-child(7),
.live-page .live-table td:nth-child(7) {
  width: 150px;
}

th:nth-child(1),
td:nth-child(1) {
  max-width: 54px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 76px;
  max-width: 76px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 220px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 190px;
}

th:nth-child(5),
td:nth-child(5),
th:nth-child(9),
td:nth-child(9) {
  width: 70px;
  max-width: 70px;
}

th:nth-child(6),
td:nth-child(6),
th:nth-child(7),
td:nth-child(7),
th:nth-child(8),
td:nth-child(8) {
  width: 140px;
}

.results-panel table .col-pos {
  width: 44px;
  max-width: 44px;
}

.results-panel table .col-number {
  width: 70px;
  max-width: 70px;
}

.results-panel table .col-pilot {
  width: 31%;
  min-width: 0;
  max-width: none;
}

.results-panel table .col-city {
  width: 18%;
  min-width: 0;
  max-width: none;
}

.results-panel table .col-best-lap {
  width: 120px;
  min-width: 0;
  max-width: none;
}

.results-panel table .col-lap {
  width: 54px;
  max-width: 58px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

.results-panel table .col-diff {
  width: 112px;
  min-width: 0;
  max-width: none;
}

.results-panel table .col-speed {
  width: 86px;
  min-width: 0;
  max-width: none;
}

.results-panel table .col-city,
.results-panel table .col-best-lap,
.results-panel table .col-diff,
.results-panel table .col-speed {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th {
  color: var(--accent);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: 0;
}

td.is-best-lap {
  color: var(--vicron-red, var(--accent)) !important;
  background: rgba(227, 5, 24, 0.06);
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 4px 0 0 var(--vicron-red, var(--accent));
  text-shadow: none;
}

tbody tr:hover {
  background: rgba(214, 95, 31, 0.06);
}

.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 180, 90, 0.38);
  padding: 0 7px;
  color: var(--accent);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-observations {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 180, 90, 0.4);
  border-left: 4px solid var(--accent-soft);
  padding: 16px 18px;
  background: rgba(242, 103, 34, 0.12);
}

.result-observations h3 {
  margin: 0;
  color: var(--accent-soft);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.result-observations p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.result-notes {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--text);
  font-weight: 800;
}

.result-notes p {
  margin: 0;
}

.lap-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.lap-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.lap-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 34, 0.12);
  box-shadow: 0 14px 26px rgba(15, 23, 34, 0.08);
}

.lap-card h3 {
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(90deg, #172332, #243140);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.lap-card table {
  width: 100%;
  min-width: 320px;
  font-size: 0.9rem;
  background: #fff;
}

.lap-card th,
.lap-card td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 34, 0.08);
}

.lap-card th {
  color: var(--vicron-red, var(--accent));
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.lap-card td {
  color: #172332;
  background: #fff;
}

.lap-card tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

.lap-card td.is-best-lap {
  background: rgba(227, 5, 24, 0.06);
}

@media (max-width: 980px) {
  .results-panel table {
    font-size: 0.82rem;
  }

  .results-panel table th,
  .results-panel table td {
    padding: 10px 7px;
  }

  .results-panel table .col-city {
    width: 15%;
  }

  .results-panel table .col-diff {
    width: 92px;
  }

  .results-panel table .col-speed {
    width: 74px;
  }

  .page-shell {
    width: min(100% - 24px, 760px);
    padding-top: 18px;
  }

  .event-hero,
  .schedule-grid,
  .listing-grid,
  .results-layout,
  .live-layout,
  .admin-home-grid,
  .admin-points-layout {
    grid-template-columns: 1fr;
  }

  .event-hero {
    align-items: start;
    margin-bottom: 22px;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .listing-card {
    min-height: 170px;
  }

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

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

  .admin-home-card {
    min-height: 190px;
    padding: 22px;
  }
}

@media (max-width: 980px) and (orientation: landscape) {
  .live-page .page-shell {
    width: 100%;
    padding: 6px;
  }

  .live-page .breadcrumb,
  .live-page .event-hero,
  .live-page .live-menu,
  .live-page .live-updated-foot {
    display: none;
  }

  .live-page .live-layout {
    display: block;
  }

  .live-page .live-panel {
    min-height: 0;
  }

  .live-page .results-heading {
    padding: 8px 10px;
  }

  .live-page .live-heading h2 {
    font-size: 1.35rem;
  }

  .live-page .live-heading p {
    margin-top: 2px;
    font-size: 0.78rem;
  }

  .live-page .live-table-wrap {
    overflow-x: hidden;
  }

  .live-page .live-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .live-page .live-table th,
  .live-page .live-table td {
    padding: 6px 4px;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-page .live-table td {
    font-size: 0.9rem;
  }

  .live-page .live-table th:first-child,
  .live-page .live-table td:first-child {
    position: static;
    width: 28px;
    min-width: 28px;
  }

  .live-page .live-table th:nth-child(2),
  .live-page .live-table td:nth-child(2) {
    width: 42px;
  }

  .live-page .live-table th:nth-child(3),
  .live-page .live-table td:nth-child(3) {
    width: auto;
  }

  .live-page .live-table th:nth-child(4),
  .live-page .live-table td:nth-child(4) {
    width: 88px;
    min-width: 0;
    padding-right: 4px;
  }

  .live-page .live-table th:nth-child(5),
  .live-page .live-table td:nth-child(5) {
    width: 34px;
  }

  .live-page .live-table th:nth-child(6),
  .live-page .live-table td:nth-child(6),
  .live-page .live-table th:nth-child(7),
  .live-page .live-table td:nth-child(7) {
    width: 82px;
  }

  .live-page .live-table td:nth-child(6),
  .live-page .live-table td:last-child {
    font-size: 1.06rem;
  }
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  .live-page .page-shell {
    width: 100%;
    padding: 8px 6px 18px;
  }

  .live-page .breadcrumb {
    display: none;
  }

  .live-page .event-hero {
    min-height: 0;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .live-page .event-hero .eyebrow {
    margin-bottom: 4px;
    font-size: 0.76rem;
  }

  .live-page .event-hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
    line-height: 0.9;
  }

  .live-page .hero-actions {
    display: none;
  }

  .live-page .live-layout {
    gap: 8px;
  }

  .live-page .live-menu {
    display: flex;
    gap: 0;
    overflow-x: auto;
  }

  .live-page .live-menu h2 {
    display: none;
  }

  .live-page .live-menu a {
    min-width: 148px;
    padding: 12px;
  }

  .live-page .live-panel {
    min-height: 0;
  }

  .live-page .results-heading {
    gap: 8px;
    padding: 12px;
  }

  .live-page .live-heading p {
    margin-top: 5px;
    font-size: 0.9rem;
  }

  .live-page .live-heading h2 {
    font-size: 1.6rem;
  }

  .live-page .live-table-wrap {
    overflow-x: hidden;
  }

  .live-page .live-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .live-page .live-table th,
  .live-page .live-table td {
    padding: 8px 4px;
    overflow: hidden;
    font-size: 0.76rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-page .live-table th:first-child,
  .live-page .live-table td:first-child {
    position: static;
    width: 30px;
    min-width: 30px;
  }

  .live-page .live-table th:nth-child(2),
  .live-page .live-table td:nth-child(2) {
    width: 38px;
    max-width: 38px;
  }

  .live-page .live-table th:nth-child(3),
  .live-page .live-table td:nth-child(3) {
    width: auto;
    max-width: none;
  }

  .live-page .live-table th:nth-child(4),
  .live-page .live-table td:nth-child(4) {
    width: 72px;
    min-width: 0;
    max-width: 72px;
    padding-right: 4px;
  }

  .live-page .live-table th:nth-child(5),
  .live-page .live-table td:nth-child(5) {
    width: 32px;
    max-width: 32px;
    padding-left: 4px;
  }

  .live-page .live-table th:nth-child(6),
  .live-page .live-table td:nth-child(6),
  .live-page .live-table th:nth-child(7),
  .live-page .live-table td:nth-child(7) {
    width: 66px;
    max-width: 66px;
  }

  .live-page .live-table td:nth-child(6),
  .live-page .live-table td:last-child {
    font-size: 1rem;
  }

  .live-page .live-updated-foot {
    justify-content: flex-start;
    padding: 8px 12px 10px;
    font-size: 0.68rem;
    opacity: 0.72;
  }

  .live-page .live-updated-foot strong {
    font-size: 0.7rem;
  }

  .event-hero {
    padding: 16px;
  }

  .event-meta,
  .hero-actions,
  .results-heading,
  .live-clock {
    align-items: flex-start;
    flex-direction: column;
    justify-items: start;
  }

  .meta-item + .meta-item::before {
    display: none;
  }

  .live-button {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
  }

  .pilot-stats {
    grid-template-columns: 1fr;
  }

  .pilot-correction-item {
    grid-template-columns: 1fr;
  }

  .admin-correction-card,
  .admin-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-pilot-card,
  .admin-pilot-data {
    grid-template-columns: 1fr;
  }

  .category-card h2 {
    font-size: 1.28rem;
  }

  .session-row,
  .session-row--plain {
    grid-template-columns: 28px minmax(0, 1fr) auto 14px;
    gap: 9px;
    min-height: 50px;
    padding: 0 10px;
  }

  .session-row .session-flag {
    display: none;
  }

  .session-name {
    font-size: 0.88rem;
  }

  time {
    font-size: 0.86rem;
  }

  time::before {
    content: "";
  }
}

/* Public visual refresh */
body:not(.admin-points-page):not(.live-page) {
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 95, 31, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(23, 35, 50, 0.2), transparent 30rem),
    linear-gradient(180deg, #fff 0, #eef2f6 54%, #e7edf4 100%);
}

body:not(.admin-points-page):not(.live-page)::before {
  opacity: 0.7;
}

body:not(.admin-points-page):not(.live-page) .event-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 30px 34px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 25, 36, 0.98), rgba(30, 48, 68, 0.94)),
    #172332;
  border: 0;
  box-shadow: 0 26px 58px rgba(23, 35, 50, 0.24);
}

body:not(.admin-points-page):not(.live-page) .event-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(214, 95, 31, 0.22), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 16px);
  content: "";
}

body:not(.admin-points-page):not(.live-page) .event-hero > * {
  position: relative;
}

body:not(.admin-points-page):not(.live-page) .event-hero h1 {
  max-width: 980px;
  color: #fff;
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  line-height: 0.85;
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}

body:not(.admin-points-page):not(.live-page) .event-hero .eyebrow,
body:not(.admin-points-page):not(.live-page) .listing-kicker {
  color: #ffb15f;
  font-weight: 900;
}

body:not(.admin-points-page):not(.live-page) .event-meta,
body:not(.admin-points-page):not(.live-page) .sessions-counter {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

body:not(.admin-points-page):not(.live-page) .sessions-counter strong {
  color: #fff;
}

body:not(.admin-points-page):not(.live-page) .meta-item + .meta-item::before {
  color: rgba(255, 255, 255, 0.3);
}

body:not(.admin-points-page):not(.live-page) .live-button,
body:not(.admin-points-page):not(.live-page) .download-pdf,
body:not(.admin-points-page):not(.live-page) .championship-card__link,
body:not(.admin-points-page):not(.live-page) .championship-actions a.is-active {
  background: linear-gradient(180deg, #ff7a1f, #cf4d12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: 0 10px 24px rgba(214, 95, 31, 0.24);
}

body:not(.admin-points-page):not(.live-page) .listing-grid {
  gap: 24px;
}

body:not(.admin-points-page):not(.live-page) .listing-card {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  padding: 24px;
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(23, 35, 50, 0.1);
  box-shadow: 0 18px 38px rgba(23, 35, 50, 0.13);
}

body:not(.admin-points-page):not(.live-page) .listing-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #ff7a1f, #172332);
  content: "";
}

body:not(.admin-points-page):not(.live-page) .listing-card::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border: 18px solid rgba(214, 95, 31, 0.08);
  border-radius: 50%;
  content: "";
}

body:not(.admin-points-page):not(.live-page) .listing-card:hover {
  background: #fff;
  box-shadow: 0 24px 46px rgba(23, 35, 50, 0.2);
}

body:not(.admin-points-page):not(.live-page) .listing-card strong {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(1.85rem, 2.6vw, 3rem);
  letter-spacing: 0;
}

body:not(.admin-points-page):not(.live-page) .results-menu,
body:not(.admin-points-page):not(.live-page) .results-panel,
body:not(.admin-points-page):not(.live-page) .section-heading,
body:not(.admin-points-page):not(.live-page) .championship-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(23, 35, 50, 0.1);
  box-shadow: 0 18px 38px rgba(23, 35, 50, 0.12);
}

body:not(.admin-points-page):not(.live-page) .results-menu h2,
body:not(.admin-points-page):not(.live-page) .results-heading {
  color: #fff;
  background: linear-gradient(90deg, #172332, #26384d);
}

body:not(.admin-points-page):not(.live-page) .results-heading h2,
body:not(.admin-points-page):not(.live-page) .results-menu h2 {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
}

body:not(.admin-points-page):not(.live-page) .results-heading span {
  color: rgba(255, 255, 255, 0.7);
}

body:not(.admin-points-page):not(.live-page) .results-menu a.is-active,
body:not(.admin-points-page):not(.live-page) .results-menu a:hover {
  color: #172332;
  background: linear-gradient(90deg, rgba(214, 95, 31, 0.2), rgba(214, 95, 31, 0.04));
  box-shadow: inset 5px 0 0 #d65f1f;
}

body:not(.admin-points-page):not(.live-page) th {
  color: #d65f1f;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

body:not(.admin-points-page):not(.live-page) td {
  color: #142033;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.admin-points-page):not(.live-page) tbody tr:nth-child(even) td {
  background: rgba(23, 35, 50, 0.035);
}

body:not(.admin-points-page):not(.live-page) .leader-box {
  background:
    linear-gradient(135deg, rgba(214, 95, 31, 0.92), rgba(23, 35, 50, 0.96)),
    #172332;
}

body:not(.admin-points-page):not(.live-page) .championship-card h2,
body:not(.admin-points-page):not(.live-page) .section-heading h2 {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
}

@media (max-width: 980px) {
  body:not(.admin-points-page):not(.live-page) .event-hero {
    min-height: 0;
    padding: 24px;
  }

  body:not(.admin-points-page):not(.live-page) .event-hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }
}

/* Tabla de campeonato por fecha: columnas fijas + fechas con scroll */
.table-wrap--points-detail {
  position: relative;
  overflow: auto;
  max-width: 100%;
  border-top: 1px solid rgba(23, 35, 50, 0.12);
  overscroll-behavior-x: contain;
}

.table-wrap--points-detail .championship-table--detail {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap--points-detail .championship-table--detail th,
.table-wrap--points-detail .championship-table--detail td {
  height: 46px;
  border-right: 1px solid rgba(23, 35, 50, 0.12);
  border-bottom: 1px solid rgba(23, 35, 50, 0.13);
  padding: 7px 6px;
  background: rgba(255, 255, 255, 0.98);
  font-size: 0.86rem;
  text-align: center;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

.table-wrap--points-detail .championship-table--detail .col-pos,
.table-wrap--points-detail .championship-table--detail .col-number,
.table-wrap--points-detail .championship-table--detail .col-pilot {
  position: sticky;
  z-index: 3;
  background: #fff;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .col-pos,
.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .col-number,
.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .col-pilot {
  background: #f4f6f8;
}

.table-wrap--points-detail .championship-table--detail thead .col-pos,
.table-wrap--points-detail .championship-table--detail thead .col-number,
.table-wrap--points-detail .championship-table--detail thead .col-pilot {
  z-index: 5;
}

.table-wrap--points-detail .championship-table--detail .col-pos {
  left: 0;
  width: 46px;
  min-width: 46px;
}

.table-wrap--points-detail .championship-table--detail .col-number {
  left: 46px;
  width: 58px;
  min-width: 58px;
}

.table-wrap--points-detail .championship-table--detail .col-pilot {
  left: 104px;
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  border-right: 2px solid rgba(214, 95, 31, 0.36);
  text-align: left;
  white-space: nowrap;
}

.table-wrap--points-detail .championship-table--detail .col-pilot,
.table-wrap--points-detail .championship-table--detail .col-pilot * {
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-wrap--points-detail .championship-table--detail .date-group {
  width: 184px;
  min-width: 184px;
  color: #d65f1f;
  background: rgba(214, 95, 31, 0.1);
  border-left: 2px solid rgba(214, 95, 31, 0.24);
  border-right: 2px solid rgba(214, 95, 31, 0.24);
  text-align: center;
}

.table-wrap--points-detail .championship-table--detail .point-col {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
}

.table-wrap--points-detail .championship-table--detail .col-total {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 68px;
  min-width: 68px;
  background: #fff7ef;
  border-left: 2px solid rgba(214, 95, 31, 0.32);
  color: #d65f1f;
}

.table-wrap--points-detail .championship-table--detail thead .col-total {
  z-index: 6;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .col-total {
  background: #fff0e4;
}

@media (max-width: 720px) {
  .table-wrap--points-detail .championship-table--detail th,
  .table-wrap--points-detail .championship-table--detail td {
    height: 42px;
    padding: 6px 4px;
    font-size: 0.78rem;
  }

  .table-wrap--points-detail .championship-table--detail .col-pos {
    width: 34px;
    min-width: 34px;
  }

  .table-wrap--points-detail .championship-table--detail .col-number {
    left: 34px;
    width: 42px;
    min-width: 42px;
  }

  .table-wrap--points-detail .championship-table--detail .col-pilot {
    left: 76px;
    width: 146px;
    min-width: 146px;
    max-width: 146px;
  }

  .table-wrap--points-detail .championship-table--detail .point-col {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
  }

  .table-wrap--points-detail .championship-table--detail .date-group {
    width: 160px;
    min-width: 160px;
  }

  .table-wrap--points-detail .championship-table--detail .col-total {
    width: 54px;
    min-width: 54px;
  }
}

/* Admin: carga manual de resultados sin cronometraje */
.manual-panel {
  overflow: hidden;
}

.manual-form {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 14px;
}

.manual-grid label,
.manual-table th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-grid input,
.manual-grid select,
.manual-table input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 850;
  text-transform: uppercase;
}

.manual-grid input:focus,
.manual-grid select:focus,
.manual-table input:focus {
  outline: 2px solid rgba(214, 95, 31, 0.34);
  outline-offset: 1px;
}

.manual-check span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
  font-weight: 850;
}

.manual-check input {
  width: auto;
  min-height: 0;
}

.manual-paste-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(23, 35, 50, 0.04);
  border: 1px solid rgba(23, 35, 50, 0.12);
}

.manual-lookup-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-paste-box label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-paste-box textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 0.92rem;
}

.manual-paste-box textarea:focus {
  outline: 2px solid rgba(214, 95, 31, 0.34);
  outline-offset: 1px;
}

.manual-paste-box .secondary-link {
  width: fit-content;
  cursor: pointer;
}

.manual-table-wrap {
  overflow: auto;
  border: 1px solid rgba(23, 35, 50, 0.14);
  background: #fff;
}

.manual-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.manual-table th,
.manual-table td {
  border-bottom: 1px solid rgba(23, 35, 50, 0.12);
  padding: 8px;
  text-align: left;
}

.manual-table th:first-child,
.manual-table td:first-child {
  width: 56px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.manual-table th:nth-child(2),
.manual-table td:nth-child(2) {
  width: 130px;
}

.manual-table th:nth-child(5),
.manual-table td:nth-child(5) {
  width: 90px;
}

.manual-table tr:nth-child(even) td {
  background: rgba(23, 35, 50, 0.035);
}

.manual-admin-page .form-success,
.manual-admin-page .form-error {
  margin-bottom: 18px;
}

.youtube-live-panel {
  margin-top: 26px;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
  box-shadow: 0 18px 42px rgba(23, 35, 50, 0.08);
}

.youtube-live-heading {
  padding: 20px 22px 10px;
}

.youtube-live-heading h2,
.youtube-live-panel--empty h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1.05;
}

.youtube-live-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #111b27;
}

.youtube-live-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-live-panel--empty {
  padding: 24px;
}

.youtube-live-panel--empty p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.youtube-admin-status {
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(23, 35, 50, 0.06);
  border: 1px solid rgba(23, 35, 50, 0.12);
  color: var(--text);
  font-weight: 800;
}

.youtube-admin-status span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.title-date-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.title-date-list a {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(24, 38, 52, 0.1);
  text-decoration: none;
}

.title-date-list a.is-active,
.title-date-list a:hover {
  border-color: rgba(214, 95, 31, 0.35);
  background: linear-gradient(90deg, rgba(242, 103, 34, 0.13), #fff);
  box-shadow: inset 5px 0 0 var(--accent);
}

.title-date-list strong {
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
}

.title-date-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-side-title--sub {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.title-admin-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.title-admin-heading p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.title-admin-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.title-category-form {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  background: rgba(23, 35, 50, 0.035);
  border: 1px solid rgba(23, 35, 50, 0.12);
}

.title-category-head {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.title-category-head h3 {
  margin: 0 0 5px;
  color: #172332;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.title-category-head p {
  margin: 0;
  color: #667482;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.title-category-grid label {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
}

.title-category-grid span {
  overflow: hidden;
  color: #667482;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.title-category-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 9px 11px;
  color: #172332;
  font-weight: 900;
  text-transform: uppercase;
}

.title-edit-list {
  display: grid;
  gap: 14px;
}

.title-edit-card {
  display: grid;
  gap: 14px;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(24, 38, 52, 0.13);
}

.title-edit-card[open] {
  padding-bottom: 16px;
}

.title-edit-card.has-override {
  border-color: rgba(214, 95, 31, 0.42);
  box-shadow: inset 5px 0 0 var(--accent);
}

.title-edit-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.title-edit-summary::-webkit-details-marker {
  display: none;
}

.title-edit-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.title-edit-summary strong {
  color: var(--text);
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.title-edit-summary small {
  color: var(--muted);
  font-weight: 900;
}

.title-edit-summary em {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #fff;
  background: #172332;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.title-edit-card.has-override .title-edit-summary em {
  background: var(--accent);
}

.title-edit-source {
  display: grid;
  gap: 4px;
  padding: 0 16px;
}

.title-edit-source strong {
  color: var(--text);
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.title-edit-source span,
.title-edit-source small {
  color: var(--muted);
  font-weight: 800;
}

.title-edit-source em {
  width: fit-content;
  padding: 4px 8px;
  color: #fff;
  background: var(--accent);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.title-edit-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(220px, 1.4fr);
  gap: 12px;
  padding: 0 16px;
}

.title-edit-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-edit-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 850;
}

.title-edit-grid input:focus {
  outline: 2px solid rgba(214, 95, 31, 0.34);
  outline-offset: 1px;
}

.title-clear-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

  .title-edit-grid {
    grid-template-columns: 1fr;
  }

  .title-admin-heading {
    display: grid;
  }

  .title-category-head {
    display: grid;
  }

  .title-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .table-wrap:not(.table-wrap--compact) {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 5, 24, 0.42) rgba(15, 23, 34, 0.08);
  }

  .table-wrap:not(.table-wrap--compact) table {
    width: 100%;
    min-width: 520px;
    table-layout: fixed;
    font-size: 0.78rem;
  }

  .table-wrap:not(.table-wrap--compact) th,
  .table-wrap:not(.table-wrap--compact) td {
    display: table-cell;
    border-bottom: 1px solid rgba(15, 23, 34, 0.09);
    padding: 10px 7px;
    font-weight: 620;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .table-wrap:not(.table-wrap--compact) th {
    color: #6d7680;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
  }

  .table-wrap:not(.table-wrap--compact) td:first-child,
  .table-wrap:not(.table-wrap--compact) th:first-child {
    position: static;
    min-width: 0;
    box-shadow: none;
  }

  .table-wrap:not(.table-wrap--compact) .col-pos {
    width: 34px;
    max-width: 34px;
    text-align: center;
  }

  .table-wrap:not(.table-wrap--compact) .col-number {
    width: 50px;
    max-width: 50px;
    text-align: center;
  }

  .table-wrap:not(.table-wrap--compact) .col-pilot {
    width: 142px;
    max-width: 142px;
    overflow: hidden;
    font-weight: 650;
    text-overflow: ellipsis;
  }

  .table-wrap:not(.table-wrap--compact) .col-city {
    display: none;
  }

  .table-wrap:not(.table-wrap--compact) .col-best-lap {
    width: 92px;
    max-width: 92px;
    text-align: right;
  }

  .table-wrap:not(.table-wrap--compact) .col-diff {
    width: 88px;
    max-width: 88px;
    text-align: right;
  }

  .table-wrap:not(.table-wrap--compact) .col-lap {
    width: 42px;
    max-width: 42px;
    text-align: center;
  }

  .table-wrap:not(.table-wrap--compact) .col-speed {
    width: 72px;
    max-width: 72px;
    text-align: right;
  }

  .table-wrap:not(.table-wrap--compact) td.is-best-lap {
    background: transparent;
    box-shadow: none;
    color: var(--vicron-red, var(--accent)) !important;
  }

  .manual-form {
    padding: 14px;
  }

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

.admin-entry {
  display: flex;
  justify-content: center;
  padding: 26px 0 6px;
}

.admin-entry a {
  border: 1px solid rgba(23, 35, 50, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(23, 35, 50, 0.68);
  padding: 7px 11px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-entry a:hover {
  border-color: rgba(214, 95, 31, 0.72);
  color: var(--accent);
}

/* Vicron public identity refresh */
:root {
  --vicron-ink: #0f1722;
  --vicron-ink-2: #243140;
  --vicron-red: #e30518;
  --vicron-orange: #e45a18;
  --vicron-green: #05d43b;
  --vicron-paper: #f4f6f8;
}

body:not(.admin-points-page) {
  background:
    linear-gradient(rgba(15, 23, 34, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 34, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(227, 5, 24, 0.13), transparent 30rem),
    linear-gradient(180deg, #ffffff 0, #f4f6f8 52%, #e9eef4 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

body:not(.admin-points-page) .page-shell {
  width: min(1680px, calc(100% - 36px));
}

body:not(.admin-points-page):not(.live-page) .event-hero,
body.live-page .event-hero {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  padding: 28px 32px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(15, 23, 34, 0.99) 0 42%, rgba(15, 23, 34, 0.72) 64%, rgba(15, 23, 34, 0.95) 100%),
    radial-gradient(circle at 76% 22%, rgba(227, 5, 24, 0.36), transparent 22rem),
    radial-gradient(circle at 86% 68%, rgba(5, 212, 59, 0.16), transparent 20rem),
    repeating-linear-gradient(112deg, transparent 0 8rem, rgba(255, 255, 255, 0.08) 8.1rem 8.35rem, transparent 8.5rem 16rem),
    linear-gradient(135deg, #263341, #101824 62%, #222a2d);
  border: 0;
  box-shadow: 0 24px 52px rgba(15, 23, 34, 0.24);
}

body:not(.admin-points-page):not(.live-page) .event-hero::before,
body.live-page .event-hero::before {
  position: absolute;
  right: -18vw;
  bottom: -28vw;
  width: 58vw;
  height: 58vw;
  border: 11vw solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

body:not(.admin-points-page):not(.live-page) .event-hero > *,
body.live-page .event-hero > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-points-page):not(.live-page) .event-hero .eyebrow,
body.live-page .event-hero .eyebrow {
  color: #ff7a1f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 1000;
  letter-spacing: 0.24em;
}

body:not(.admin-points-page):not(.live-page) .event-hero h1,
body.live-page .event-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.6rem, 5.8vw, 5.65rem);
  font-weight: 1000;
  letter-spacing: 0.035em;
  line-height: 0.92;
  text-shadow: none;
}

body:not(.admin-points-page):not(.live-page) .event-meta,
body.live-page .event-meta,
body:not(.admin-points-page):not(.live-page) .sessions-counter,
body.live-page .sessions-counter {
  color: rgba(255, 255, 255, 0.78);
}

body:not(.admin-points-page):not(.live-page) .sessions-counter strong,
body.live-page .sessions-counter strong {
  color: #fff;
}

body:not(.admin-points-page):not(.live-page) .live-button,
body.live-page .live-button,
body:not(.admin-points-page):not(.live-page) .download-pdf,
body:not(.admin-points-page):not(.live-page) .championship-card__link,
body:not(.admin-points-page):not(.live-page) .championship-actions a.is-active {
  min-height: 48px;
  border: 1px solid var(--vicron-red);
  background: var(--vicron-red);
  color: #fff;
  box-shadow: 0 18px 34px rgba(227, 5, 24, 0.2);
}

body:not(.admin-points-page):not(.live-page) .live-button:hover,
body.live-page .live-button:hover,
body:not(.admin-points-page):not(.live-page) .download-pdf:hover {
  background: #b90012;
  border-color: #b90012;
}

body:not(.admin-points-page):not(.live-page) .listing-card,
body:not(.admin-points-page):not(.live-page) .results-panel,
body:not(.admin-points-page):not(.live-page) .results-menu,
body:not(.admin-points-page):not(.live-page) .section-heading,
body:not(.admin-points-page):not(.live-page) .championship-card,
body.live-page .results-panel,
body.live-page .results-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 34, 0.1);
  box-shadow: 0 18px 38px rgba(15, 23, 34, 0.1);
}

body:not(.admin-points-page):not(.live-page) .listing-card {
  min-height: 220px;
  padding: 24px;
}

body:not(.admin-points-page):not(.live-page) .listing-card::before {
  width: 6px;
  background: linear-gradient(180deg, var(--vicron-red), var(--vicron-orange));
}

body:not(.admin-points-page):not(.live-page) .listing-card::after {
  border-color: rgba(227, 5, 24, 0.08);
}

body:not(.admin-points-page):not(.live-page) .listing-card strong,
body:not(.admin-points-page):not(.live-page) .championship-card h2,
body:not(.admin-points-page):not(.live-page) .section-heading h2,
body:not(.admin-points-page):not(.live-page) .results-heading h2,
body.live-page .results-heading h2,
body:not(.admin-points-page):not(.live-page) .results-menu h2,
body.live-page .results-menu h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

body:not(.admin-points-page):not(.live-page) .listing-card strong {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
}

body:not(.admin-points-page):not(.live-page) .results-heading,
body.live-page .results-heading,
body:not(.admin-points-page):not(.live-page) .results-menu h2,
body.live-page .results-menu h2 {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 34, 0.98), rgba(36, 49, 64, 0.96)),
    var(--vicron-ink);
}

body:not(.admin-points-page):not(.live-page) .results-heading span,
body.live-page .results-heading span {
  color: rgba(255, 255, 255, 0.72);
}

body:not(.admin-points-page):not(.live-page) .results-menu a.is-active,
body:not(.admin-points-page):not(.live-page) .results-menu a:hover,
body.live-page .results-menu a.is-active,
body.live-page .results-menu a:hover {
  color: var(--vicron-ink);
  background: rgba(227, 5, 24, 0.08);
  box-shadow: inset 5px 0 0 var(--vicron-red);
}

body:not(.admin-points-page):not(.live-page) th,
body.live-page th {
  color: var(--vicron-orange);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.025em;
}

body:not(.admin-points-page):not(.live-page) td,
body.live-page td {
  color: var(--vicron-ink);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.admin-points-page):not(.live-page) tbody tr:nth-child(even) td,
body.live-page tbody tr:nth-child(even) td {
  background: rgba(15, 23, 34, 0.035);
}

body:not(.admin-points-page):not(.live-page) .leader-box,
body.live-page .leader-box {
  background:
    linear-gradient(135deg, rgba(227, 5, 24, 0.94), rgba(15, 23, 34, 0.98)),
    var(--vicron-ink);
}

body:not(.admin-points-page):not(.live-page) .category-select a,
body:not(.admin-points-page):not(.live-page) .championship-actions a,
body:not(.admin-points-page):not(.live-page) .detail-actions a {
  border-color: rgba(15, 23, 34, 0.14);
  background: #fff;
}

body:not(.admin-points-page):not(.live-page) .category-select a.is-active,
body:not(.admin-points-page):not(.live-page) .championship-actions a.is-active {
  background: var(--vicron-red);
  color: #fff;
}

body:not(.admin-points-page):not(.live-page) .admin-entry a {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  body:not(.admin-points-page):not(.live-page) .event-hero,
  body.live-page .event-hero {
    min-height: 0;
    padding: 22px;
  }

  body:not(.admin-points-page):not(.live-page) .event-hero h1,
  body.live-page .event-hero h1 {
    font-size: clamp(2.35rem, 11vw, 4.5rem);
  }
}

@media (max-width: 620px) {
  body:not(.admin-points-page):not(.live-page) .page-shell,
  body.live-page .page-shell {
    width: min(100% - 18px, 1680px);
  }
}

/* Campeonato: tarjetas compactas y podio */
.championship-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.championship-card {
  gap: 12px;
  min-height: 0;
  padding: 16px;
}

body:not(.admin-points-page):not(.live-page) .championship-card h2 {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  overflow: visible;
  font-size: clamp(1.35rem, 1.85vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  white-space: normal;
}

.championship-card__top {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.podium-box {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.podium-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(23, 35, 50, 0.1);
  padding: 7px 8px;
  background: rgba(23, 35, 50, 0.035);
}

.podium-medal {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #111827;
  font-size: 0.82rem;
  font-weight: 900;
}

.podium-row--gold .podium-medal {
  background: linear-gradient(180deg, #ffe58a, #d99b12);
}

.podium-row--silver .podium-medal {
  background: linear-gradient(180deg, #f4f7fb, #aeb8c4);
}

.podium-row--bronze .podium-medal {
  background: linear-gradient(180deg, #f2b27a, #a75a22);
}

.podium-row strong {
  min-width: 0;
  overflow: hidden;
  color: #172332;
  font-size: clamp(0.82rem, 1vw, 0.96rem);
  font-weight: 850;
  line-height: 1.12;
  text-overflow: clip;
  text-transform: uppercase;
  white-space: nowrap;
}

.podium-row em {
  color: #d65f1f;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.championship-card__link {
  min-height: 38px;
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .championship-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body:not(.admin-points-page):not(.live-page) .championship-card h2 {
    font-size: clamp(1.25rem, 7vw, 1.85rem);
  }

  .championship-card {
    padding: 14px;
  }

  .podium-row {
    grid-template-columns: 28px minmax(0, 1fr) 58px;
    min-height: 42px;
  }

  .podium-row strong {
    font-size: 0.82rem;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .championship-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ajuste publico: tarjetas de fechas/categorias mas compactas */
body:not(.admin-points-page):not(.live-page) .listing-grid {
  gap: 18px;
}

body:not(.admin-points-page):not(.live-page) .listing-card {
  min-height: 150px;
  padding: 18px 20px;
}

body:not(.admin-points-page):not(.live-page) .listing-card::after {
  right: -44px;
  bottom: -48px;
  width: 100px;
  height: 100px;
  border-width: 15px;
}

body:not(.admin-points-page):not(.live-page) .listing-card strong {
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1.04;
}

body:not(.admin-points-page):not(.live-page) .listing-card span:not(.listing-kicker) {
  font-size: 0.9rem;
}

body:not(.admin-points-page):not(.live-page) .championship-card__link,
body:not(.admin-points-page):not(.live-page) .live-button,
body:not(.admin-points-page):not(.live-page) .download-pdf,
body:not(.admin-points-page):not(.live-page) .championship-actions a {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 0.86rem;
}

/* Admin titulos: datos editables de fechas */
.title-date-form {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  background: rgba(23, 35, 50, 0.035);
  border: 1px solid rgba(23, 35, 50, 0.12);
}

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

.title-date-edit {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
}

.title-date-edit.is-active {
  border-color: rgba(214, 95, 31, 0.45);
  box-shadow: inset 4px 0 0 var(--accent);
}

.title-date-edit > strong {
  color: #172332;
  font-size: 0.9rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.title-date-edit label {
  display: grid;
  gap: 5px;
  color: #667482;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-date-edit input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  padding: 8px 10px;
  color: #172332;
  font-weight: 850;
}

@media (max-width: 720px) {
  body:not(.admin-points-page):not(.live-page) .listing-card {
    min-height: 124px;
    padding: 16px 18px;
  }

  .title-date-grid {
    grid-template-columns: 1fr;
  }
}
