: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;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  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));
  max-width: 100%;
  min-width: 0;
  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;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

/* Importacion controlada desde eventos publicos de Speedhive. */
.speedhive-admin-page .form-success,
.speedhive-admin-page .form-error,
.speedhive-notice {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #d7dde4;
  background: #fff;
  color: #172333;
  font-weight: 800;
}

.speedhive-admin-page .form-success {
  border-left: 5px solid #168647;
}

.speedhive-admin-page .form-error {
  border-left: 5px solid #d20d24;
  background: #fff4f5;
}

.speedhive-notice {
  border-left: 5px solid #d96618;
}

.speedhive-source-form {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(220px, 1fr) minmax(150px, .55fr) auto;
  gap: 16px;
  align-items: end;
  padding: 24px;
}

.speedhive-source-form label,
.speedhive-category-card header label {
  display: grid;
  gap: 8px;
  color: #172333;
  font-weight: 800;
}

.speedhive-source-form input,
.speedhive-source-form select,
.speedhive-category-card select {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cbd3dc;
  background: #fff;
  color: #172333;
  font: inherit;
}

.speedhive-event-panel {
  margin-top: 24px;
}

.speedhive-event-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px;
  color: #fff;
  background: #172638;
}

.speedhive-event-heading span,
.speedhive-category-card header span {
  display: block;
  margin-bottom: 6px;
  color: #d96618;
  font-weight: 900;
  text-transform: uppercase;
}

.speedhive-event-heading h2,
.speedhive-category-card h3 {
  margin: 0;
  letter-spacing: 0;
}

.speedhive-category-card {
  border-bottom: 1px solid #d7dde4;
  background: #fff;
}

.speedhive-category-card header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: end;
  padding: 24px;
  background: #f3f6f8;
}

.speedhive-session-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speedhive-session-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 14px 20px;
  border-top: 1px solid #e0e5ea;
  cursor: pointer;
}

.speedhive-session-row:nth-child(odd) {
  border-right: 1px solid #e0e5ea;
}

.speedhive-session-row input {
  width: 20px;
  height: 20px;
  accent-color: #d20d24;
}

.speedhive-session-row span,
.speedhive-session-row strong,
.speedhive-session-row small {
  min-width: 0;
  display: block;
}

.speedhive-session-row small {
  margin-top: 4px;
  color: #687687;
}

.speedhive-status {
  color: #687687;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.speedhive-status--synced {
  color: #168647;
}

.speedhive-sync-actions {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: #172638;
  color: #fff;
}

.speedhive-imported-results {
  border-top: 1px solid #d7dde4;
  margin-top: 28px;
  padding-top: 24px;
}

.speedhive-imported-row {
  align-items: center;
  border-top: 1px solid #d7dde4;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, auto) auto;
  padding: 18px 0;
}

.speedhive-imported-row > div {
  display: grid;
  gap: 5px;
}

.speedhive-imported-row small {
  color: #667486;
}

.speedhive-points-state {
  background: #fff1d8;
  border-left: 4px solid #d95f16;
  color: #8b3b0d;
  font-weight: 800;
  padding: 10px 12px;
}

.speedhive-points-state--enabled {
  background: #e5f5eb;
  border-left-color: #16864b;
  color: #126638;
}

@media (max-width: 900px) {
  .speedhive-imported-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .speedhive-imported-row form,
  .speedhive-imported-row button {
    width: 100%;
  }
}

.speedhive-sync-actions p {
  margin: 0;
  max-width: 800px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .speedhive-source-form,
  .speedhive-category-card header {
    grid-template-columns: 1fr;
  }

  .speedhive-session-list {
    grid-template-columns: 1fr;
  }

  .speedhive-session-row:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .speedhive-event-heading,
  .speedhive-sync-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .speedhive-session-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .speedhive-status {
    grid-column: 2;
    text-align: left;
  }
}

.hero-actions form {
  max-width: 100%;
  margin: 0;
}

.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: Inter, Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.live-button::before {
  display: none;
  content: none;
}

.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-menu .menu-subitems .parallel-result-link {
  margin: 2px 10px 5px 26px;
  padding: 8px 12px 8px 30px;
  color: #526170;
  background: rgba(23, 35, 50, 0.05);
  border-left: 3px solid rgba(214, 95, 31, 0.55);
  font-size: 0.8rem;
}

.results-menu .menu-subitems .parallel-result-link::before {
  left: 12px;
  width: auto;
  height: auto;
  background: transparent;
  content: "+";
  font-weight: 900;
}

.results-menu .menu-subitems .parallel-result-link.is-active {
  color: #172332;
  background: rgba(214, 95, 31, 0.18);
  border-left-color: #d65f1f;
}

.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);
}

.championship-table--detail td.date-win-cell {
  color: #172332;
  background: #fff3bf !important;
  border-top: 2px solid #e0a400 !important;
  border-bottom: 2px solid #e0a400 !important;
}

.championship-table--detail td.date-win-start {
  border-left: 3px solid #e0a400 !important;
  box-shadow: inset 4px 0 0 rgba(224, 164, 0, 0.2);
}

.championship-table--detail td.date-win-final {
  color: #9a5700;
  font-weight: 950;
}

.championship-table--detail td.date-win-end {
  border-right: 3px solid #e0a400 !important;
  box-shadow: inset -4px 0 0 rgba(224, 164, 0, 0.2);
}

.date-win-trophy {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.78rem;
  line-height: 1;
  vertical-align: 1px;
  filter: drop-shadow(0 1px 0 rgba(23, 35, 50, 0.16));
}

.points-detail-mobile {
  display: none;
}

.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);
}

.admin-guest-points {
  margin: 18px;
  border: 1px solid rgba(214, 95, 31, 0.22);
  background: #fff7ef;
}

.admin-guest-points__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(214, 95, 31, 0.2);
}

.admin-guest-points__heading h3 {
  margin: 0;
  color: var(--text);
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.admin-guest-points__heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-guest-points__date {
  padding: 14px 16px 16px;
}

.admin-guest-points__date + .admin-guest-points__date {
  border-top: 1px solid rgba(214, 95, 31, 0.18);
}

.admin-guest-points__date h4 {
  margin: 0 0 10px;
  color: #d65f1f;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-guest-points__table th,
.admin-guest-points__table td {
  padding: 10px 12px;
  font-size: 0.84rem;
}

.results-panel .admin-guest-points__table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

.results-panel .admin-guest-points__table th,
.results-panel .admin-guest-points__table td {
  min-width: 0;
  vertical-align: middle;
  text-align: center;
}

.results-panel .admin-guest-points__table th:nth-child(1),
.results-panel .admin-guest-points__table td:nth-child(1) {
  width: 64px;
}

.results-panel .admin-guest-points__table th:nth-child(2),
.results-panel .admin-guest-points__table td:nth-child(2) {
  width: 220px;
  text-align: left;
}

.results-panel .admin-guest-points__table th:nth-child(3),
.results-panel .admin-guest-points__table td:nth-child(3) {
  width: 250px;
  text-align: left;
}

.results-panel .admin-guest-points__table th:nth-child(2),
.results-panel .admin-guest-points__table td:nth-child(2),
.results-panel .admin-guest-points__table th:nth-child(3),
.results-panel .admin-guest-points__table td:nth-child(3) {
  white-space: normal;
}

.results-panel .admin-guest-points__table th:nth-child(n+4),
.results-panel .admin-guest-points__table td:nth-child(n+4) {
  width: 106px;
}

.admin-guest-points__table th {
  color: #d65f1f;
}

.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;
}

.championship-card__link--parallel {
  margin-top: 8px;
  color: #172332;
  background: #fff;
  border: 1px solid rgba(214, 95, 31, 0.4);
}

.results-menu .parallel-ranking-link {
  position: relative;
  padding-left: 36px;
  color: #4f5f6f;
  background: rgba(214, 95, 31, 0.06);
  font-size: 0.9rem;
}

.results-menu .parallel-ranking-link::before {
  content: "+";
  position: absolute;
  left: 18px;
  color: #d65f1f;
  font-weight: 900;
}

.results-menu .parallel-ranking-link.is-active {
  color: #172332;
  background: rgba(214, 95, 31, 0.16);
  box-shadow: inset 5px 0 0 #d65f1f;
}

.admin-points-layout > *,
.admin-points-layout .results-panel,
.admin-points-layout .side-panel {
  max-width: 100%;
  min-width: 0;
}

.admin-points-page .page-shell {
  width: min(1540px, calc(100% - 48px));
}

.admin-hero {
  display: flex;
  flex-wrap: wrap;
  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);
  width: 100%;
  max-width: 100%;
}

.admin-hero > div:first-child {
  flex: 1 1 440px;
  max-width: 100%;
  min-width: 0;
}

.admin-points-page .admin-hero .hero-actions {
  display: grid;
  flex: 0 1 720px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  width: min(100%, 720px);
  max-width: 100%;
  gap: 12px;
}

.admin-points-page .admin-hero .hero-actions > a,
.admin-points-page .admin-hero .hero-actions > form,
.admin-points-page .admin-hero .hero-actions > form > button {
  width: 100%;
  min-width: 0;
}

.admin-points-page .admin-hero .hero-actions .live-button {
  justify-content: center;
}

.admin-hero h1 {
  margin: 2px 0 0;
  color: #fff;
  font-family: "Arial Black", "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(3.5rem, 5vw, 5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
  overflow-wrap: anywhere;
}

.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;
}

/* El panel nunca debe ensanchar la ventana. Las tablas grandes se desplazan
   dentro de su propio bloque para conservar columnas legibles. */
.admin-points-page,
.admin-points-page .page-shell,
.admin-points-page .page-shell > *,
.admin-points-page .admin-points-layout,
.admin-points-page .admin-points-layout > *,
.admin-points-page .results-panel,
.admin-points-page .side-panel,
.admin-points-page .manual-panel,
.admin-points-page .manual-form,
.admin-points-page .points-form,
.admin-points-page form,
.admin-points-page fieldset {
  max-width: 100%;
  min-width: 0;
}

.admin-points-page .admin-table-wrap,
.admin-points-page .manual-table-wrap,
.admin-points-page .table-wrap {
  width: 100%;
  max-width: 100%;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.admin-points-page button,
.admin-points-page .secondary-link,
.admin-points-page input,
.admin-points-page select,
.admin-points-page textarea {
  max-width: 100%;
}

.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);
}

.pilot-alert {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  width: min(420px, calc(100vw - 48px));
  max-height: min(560px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  border: 1px solid #cbd3dc;
  border-left: 6px solid #667383;
  background: #fff;
  box-shadow: 0 18px 48px rgba(10, 20, 32, .24);
  color: #172334;
}

.pilot-alert--loading,
.pilot-alert--warning,
.pilot-alert--ok,
.pilot-alert--error {
  display: block;
}

.pilot-alert--warning { border-left-color: #d65316; }
.pilot-alert--ok { border-left-color: #168344; }
.pilot-alert--error { border-left-color: #bd1826; }

.pilot-alert > strong {
  display: block;
  padding-right: 34px;
  font-size: 19px;
}

.pilot-alert p {
  margin: 8px 0 0;
  color: #586575;
  line-height: 1.4;
}

.pilot-alert ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pilot-alert li {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid #dce1e6;
}

.pilot-alert li a {
  color: #b20f1d;
  font-weight: 800;
}

.pilot-alert__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #596675;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .pilot-alert {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}

.result-audit {
  margin: 0 0 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #d7dde4;
  border-top: 5px solid #168444;
}

.result-audit--warning {
  border-top-color: #d10f22;
  background: #fffafa;
}

.result-audit__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-audit__heading h2 {
  margin: 3px 0 0;
  color: #152234;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  letter-spacing: 0;
}

.result-audit__heading > strong,
.result-audit__eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-audit__eyebrow {
  color: #667384;
  font-size: 13px;
}

.result-audit__heading > strong {
  padding: 10px 12px;
  color: #fff;
  background: #168444;
  font-size: 14px;
}

.result-audit--warning .result-audit__heading > strong {
  background: #d10f22;
}

.result-audit__summary {
  margin: 16px 0 0;
  color: #4d5a69;
  font-size: 17px;
  font-weight: 700;
}

.result-audit__list {
  max-height: 520px;
  margin-top: 18px;
  overflow-y: auto;
  border-top: 1px solid #e0e4e8;
}

.result-audit__issue {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(330px, 1.4fr);
  gap: 12px 28px;
  padding: 18px 4px;
  border-bottom: 1px solid #e0e4e8;
}

.result-audit__location strong,
.result-audit__location span {
  display: block;
}

.result-audit__location strong {
  color: #152234;
  font-size: 17px;
}

.result-audit__location span {
  margin-top: 5px;
  color: #d10f22;
  font-weight: 800;
}

.result-audit__differences p {
  margin: 0 0 7px;
  color: #273547;
}

.result-audit__entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}

.result-audit__entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  color: #243144;
  background: #eef3f7;
  border-left: 4px solid #526170;
}

.result-audit__entry--lap {
  background: #fff0f2;
  border-left-color: #d10f22;
}

.result-audit__entry b,
.result-audit__entry small {
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
}

.result-audit__entry small {
  font-size: 12px;
  font-weight: 800;
}

.result-audit__issue small,
.result-audit__files {
  grid-column: 1 / -1;
}

.result-audit__issue small {
  color: #6c7785;
}

.result-audit__files {
  display: grid;
  gap: 4px;
}

.result-audit__files b {
  color: #354356;
}

.result-audit__corrections {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  color: #173b29;
  background: #edf8f1;
  border: 1px solid #b8dcc5;
  border-left: 5px solid #168444;
}

.result-audit__corrections > strong {
  font: 800 15px/1.2 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.result-audit__correction {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(130px, 0.65fr) minmax(130px, 0.65fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #cce4d5;
}

.result-audit__correction-pilot,
.result-audit__correction label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.result-audit__correction-pilot span,
.result-audit__correction label span {
  color: #546779;
  font: 700 12px/1.2 Arial, Helvetica, sans-serif;
}

.result-audit__correction-pilot b {
  overflow-wrap: anywhere;
  color: #152234;
  font: 800 16px/1.2 Arial, Helvetica, sans-serif;
}

.result-audit__correction input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #152234;
  background: #fff;
  border: 1px solid #aebbc7;
  font: 800 15px/1 Arial, Helvetica, sans-serif;
}

.result-audit__correction input:disabled {
  color: #8d0b18;
  background: #fff4f5;
}

.result-audit__correction button {
  min-height: 42px;
  padding: 10px 14px;
  color: #fff;
  background: #168444;
  border: 0;
  font: 800 14px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.result-audit__correction > small {
  grid-column: 1 / -1;
  margin: 0;
  color: #315c42;
  font-weight: 700;
}

.result-audit__flash {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-left: 5px solid #168444;
  background: #eaf7ef;
  color: #124b2a;
  font-weight: 800;
}

.result-audit__flash--error {
  border-left-color: #d10f22;
  background: #ffe9ec;
  color: #8d0b18;
}

.result-audit__accepted {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #ced6df;
  background: #f5f7f9;
  color: #4d5a69;
  font-weight: 700;
}

.result-audit__accepted button,
.result-audit__button,
.result-audit__replace button {
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: #445267;
  font: 800 14px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.result-audit__accepted button {
  min-height: 36px;
  margin-left: auto;
  padding: 8px 11px;
  color: #243144;
  background: #fff;
  border: 1px solid #aeb8c4;
}

.result-audit__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid #d8dee5;
  background: #f6f8fa;
}

.result-audit__actions form {
  margin: 0;
}

.result-audit__replace {
  display: flex;
  flex: 1 1 480px;
  align-items: flex-end;
  gap: 10px;
  min-width: 0;
}

.result-audit__replace label {
  flex: 1 1 280px;
  min-width: 0;
  color: #273547;
  font-size: 13px;
  font-weight: 800;
}

.result-audit__replace label span {
  display: block;
  margin-bottom: 6px;
}

.result-audit__replace input[type="file"] {
  width: 100%;
  min-height: 42px;
  padding: 7px;
  border: 1px solid #bfc8d2;
  background: #fff;
  color: #273547;
}

.result-audit__replace button {
  background: #1473a7;
}

.result-audit__button--danger {
  background: #d10f22;
}

.result-audit__button--accept {
  background: #168444;
}

.result-audit__button--secondary {
  color: #8d0b18;
  background: #fff;
  border: 1px solid #d10f22;
}

@media (max-width: 760px) {
  .result-audit {
    padding: 20px 18px;
  }

  .result-audit__heading,
  .result-audit__issue {
    display: block;
  }

  .result-audit__heading > strong {
    display: inline-block;
    margin-top: 14px;
  }

  .result-audit__differences {
    margin-top: 12px;
  }

  .result-audit__issue small {
    display: block;
    margin-top: 12px;
  }

  .result-audit__accepted button {
    margin-left: 0;
  }

  .result-audit__actions,
  .result-audit__replace,
  .result-audit__correction {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .result-audit__actions form,
  .result-audit__actions button,
  .result-audit__replace label,
  .result-audit__correction button {
    width: 100%;
  }
}

/* VICRON REDISEÑO INTEGRAL - ÚLTIMA CAPA VISUAL */
:root {
  --bg: #edf1f5 !important;
  --panel: #ffffff !important;
  --panel-strong: #ffffff !important;
  --line: #d6dee7 !important;
  --text: #162437 !important;
  --muted: #6b7a8a !important;
  --accent: #df1730 !important;
  --accent-soft: #f27b2b !important;
  --navy: #162437 !important;
  --navy-2: #23384e !important;
  --shadow: rgba(22, 36, 55, .12) !important;
}

body {
  background: #edf1f5 !important;
  color: var(--text) !important;
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
}

body::before { opacity: .18 !important; background-size: 60px 60px !important; }
.page-shell { width: min(1440px, calc(100% - 40px)) !important; padding: 24px 0 44px !important; }

.event-hero,
.admin-hero,
.er-hero,
.cronos-hub__head {
  min-height: 0 !important;
  padding: 26px 30px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-bottom: 4px solid var(--accent) !important;
  border-radius: 14px !important;
  background: linear-gradient(115deg, #142235 0%, #20354b 68%, #823d2a 150%) !important;
  box-shadow: 0 18px 34px rgba(22,36,55,.16) !important;
}

.event-hero h1,
.admin-hero h1,
.er-hero h1,
.cronos-hub__head h1 { font-size: clamp(2rem, 4vw, 3.6rem) !important; line-height: 1 !important; margin: 6px 0 10px !important; }
.event-hero .eyebrow, .admin-hero p:first-child, .listing-kicker { color: #ffad55 !important; font-size: .72rem !important; letter-spacing: .1em !important; }
.home-hero-copy { max-width: 720px !important; margin: 0 !important; color: #d7e0e8 !important; font-size: .96rem !important; }
.event-meta { color: #d6e0e9 !important; font-size: .86rem !important; }
.hero-actions { gap: 8px !important; }
.live-button, .secondary-link, .download-pdf, .championship-card__link, .championship-actions a, button, input[type="submit"] {
  min-height: 38px !important; padding: 9px 13px !important; border-radius: 7px !important; box-shadow: none !important; font-size: .8rem !important; font-weight: 800 !important;
}

.listing-grid { gap: 14px !important; }
.listing-card, .results-panel, .side-panel, .home-quick-access, .admin-home-card, .championship-card, .speedhive-category-card, .program-box, .auth-panel {
  overflow: hidden !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: 0 8px 22px var(--shadow) !important;
}
.listing-card { border-left: 4px solid var(--accent) !important; }
.listing-card-main { min-height: 152px !important; padding: 20px 22px !important; }
.listing-card-main strong { font-size: 1.3rem !important; line-height: 1.08 !important; }
.listing-card-actions { gap: 6px !important; padding: 12px 16px !important; background: #f6f8fa !important; }
.home-section-heading { margin: 30px 0 14px !important; }
.home-section-heading h2 { font-size: 1.55rem !important; }
.home-section-heading__copy { color: var(--muted) !important; font-size: .9rem !important; }

.results-panel, .side-panel { padding: 18px !important; }
.results-panel > header, .results-panel__head, .panel-heading { border-bottom: 1px solid var(--line) !important; padding-bottom: 12px !important; }
.table-wrap { border: 1px solid var(--line) !important; border-radius: 9px !important; box-shadow: none !important; }
table { font-size: .86rem !important; }
th { padding: 10px 11px !important; background: var(--navy) !important; color: #fff !important; font-size: .7rem !important; text-transform: uppercase !important; }
td { padding: 10px 11px !important; }
tbody tr:nth-child(even) { background: #f7f9fb !important; }
tbody tr:hover { background: #fff1ec !important; }

input, select, textarea { min-height: 40px !important; border: 1px solid #cbd5df !important; border-radius: 7px !important; font-size: .9rem !important; }
label { color: var(--navy) !important; font-size: .8rem !important; font-weight: 800 !important; }
.admin-home-card { min-height: 140px !important; padding: 20px !important; }
.admin-home-card h2, .admin-home-card strong { font-size: 1.25rem !important; }
.admin-championship-card { border-radius: 8px !important; }
.admin-championship-card.is-active { border-left: 4px solid var(--accent) !important; }

.cronos-hub { width: min(1500px, calc(100% - 32px)) !important; }
.crono-screen { overflow: hidden !important; border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: 0 10px 22px var(--shadow) !important; }
.crono-screen__head { padding: 18px !important; background: var(--navy) !important; }
.crono-screen__head h2 { font-size: 1.35rem !important; }

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 20px) !important; padding-top: 12px !important; }
  .event-hero, .admin-hero, .er-hero, .cronos-hub__head { padding: 20px 17px !important; border-radius: 10px !important; }
  .event-hero h1, .admin-hero h1, .er-hero h1, .cronos-hub__head h1 { font-size: 2rem !important; }
  .hero-actions { justify-content: flex-start !important; }
  .hero-actions > * { flex: 0 1 auto !important; }
  .listing-grid { grid-template-columns: 1fr !important; }
  .listing-card-main { min-height: 0 !important; padding: 18px !important; }
  .listing-card-main strong { font-size: 1.15rem !important; }
  .results-panel, .side-panel { padding: 11px !important; }
  .table-wrap { overflow-x: auto !important; }
  table { min-width: 620px !important; }
  .cronos-hub { width: calc(100% - 12px) !important; }
}

/* VICRON REDESIGN 2026
   Capa visual global: conserva las plantillas y la logica existentes,
   pero unifica el portal publico, resultados, campeonatos e inscripcion. */
@media screen {
  :root {
    --bg: #eef2f6;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --line: #d9e0e7;
    --text: #142235;
    --muted: #687789;
    --accent: #e31b2f;
    --accent-soft: #f36a27;
    --navy: #142235;
    --navy-2: #203248;
    --shadow: rgba(20, 34, 53, 0.12);
  }

  body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    background: linear-gradient(180deg, #f8fafc 0, #eef2f6 70%, #e7edf3 100%);
  }

  body::before {
    opacity: .42;
    background-size: 56px 56px;
  }

  .page-shell {
    width: min(1480px, calc(100% - 40px));
    padding: 28px 0 42px;
  }

  h1, h2, h3, h4, strong, th, button, a {
    letter-spacing: 0 !important;
  }

  h1 { font-size: clamp(2rem, 4vw, 3.8rem) !important; line-height: 1 !important; }
  h2 { font-size: clamp(1.25rem, 2vw, 1.8rem) !important; line-height: 1.1 !important; }
  h3 { font-size: 1.05rem !important; }

  .event-hero,
  .admin-hero,
  .er-hero,
  .cronos-hub__head {
    border: 0 !important;
    border-bottom: 4px solid var(--accent) !important;
    border-radius: 14px !important;
    background: linear-gradient(118deg, var(--navy) 0%, #1d3046 66%, #a64225 140%) !important;
    box-shadow: 0 16px 34px rgba(20, 34, 53, .16) !important;
  }

  .event-hero,
  .admin-hero { padding: 28px 32px !important; }

  .event-hero .eyebrow,
  .admin-hero p:first-child,
  .listing-kicker,
  .home-section-heading .listing-kicker {
    color: #ffb15b !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    letter-spacing: .09em !important;
    text-transform: uppercase;
  }

  .event-hero h1,
  .admin-hero h1,
  .er-hero h1,
  .cronos-hub__head h1 { max-width: 900px; color: #fff !important; }

  .home-hero-copy,
  .event-hero .event-meta,
  .admin-hero .event-meta { color: #d7e0ea !important; font-size: .95rem !important; }

  .hero-actions,
  .home-quick-actions { gap: 8px !important; }

  .live-button,
  .secondary-link,
  .download-pdf,
  button,
  input[type="submit"],
  input[type="button"] {
    min-height: 38px !important;
    border-radius: 7px !important;
    padding: 9px 14px !important;
    font-size: .82rem !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }

  .live-button--primary,
  .secondary-link--featured,
  button[type="submit"],
  input[type="submit"] { background: var(--accent) !important; }

  .home-quick-access,
  .results-panel,
  .side-panel,
  .admin-home-card,
  .listing-card,
  .championship-card,
  .speedhive-category-card,
  .program-box,
  .auth-panel {
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 8px 22px var(--shadow) !important;
  }

  .home-quick-access { padding: 18px 22px !important; }
  .home-section-heading { margin: 30px 0 14px !important; }
  .home-section-heading h2 { color: var(--navy) !important; }

  .listing-grid { gap: 14px !important; }
  .listing-card { overflow: hidden; }
  .listing-card-main { padding: 22px !important; }
  .listing-card-main strong { font-size: 1.35rem !important; line-height: 1.08 !important; }
  .listing-card-main span:not(.listing-kicker) { font-size: .88rem !important; }
  .listing-card-actions { gap: 7px !important; padding: 12px 18px !important; background: #f6f8fa !important; }

  .results-panel,
  .side-panel { padding: 20px !important; }

  .table-wrap { border: 1px solid var(--line) !important; border-radius: 9px !important; }
  table { font-size: .88rem !important; }
  th { background: var(--navy) !important; color: #fff !important; font-size: .72rem !important; }
  td, th { padding: 11px 12px !important; }
  tbody tr:nth-child(even) { background: #f7f9fb !important; }
  tbody tr:hover { background: #fff2ee !important; }

  input, select, textarea {
    min-height: 40px !important;
    border: 1px solid #cbd5df !important;
    border-radius: 7px !important;
    font: inherit !important;
    font-size: .9rem !important;
  }
  label { color: var(--navy) !important; font-size: .82rem !important; font-weight: 800 !important; }

  .admin-home-card { min-height: 150px !important; padding: 22px !important; }
  .admin-home-card h2,
  .admin-home-card strong { font-size: 1.35rem !important; }
  .admin-championship-card { border-radius: 9px !important; }
  .admin-championship-card.is-active { border-left: 4px solid var(--accent) !important; }

  .cronos-hub { width: min(1540px, calc(100% - 34px)) !important; }
  .crono-screen { border-radius: 10px !important; border: 1px solid #cdd8e2 !important; box-shadow: 0 10px 24px var(--shadow) !important; }
  .crono-screen__head { padding: 20px !important; background: var(--navy) !important; }
  .crono-screen__head h2 { font-size: 1.5rem !important; }

  .auth-shell { min-height: calc(100vh - 50px) !important; }
  .auth-panel { max-width: 520px !important; padding: 30px !important; }

  .admin-points-page .page-shell { padding-top: 22px !important; }

  .event-hero.event-hero--home {
    min-height: 0 !important;
    padding: 28px 34px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 14px 28px !important;
    align-items: end !important;
  }
  .event-hero.event-hero--home > div:first-child { grid-column: 1 / -1 !important; }
  .event-hero.event-hero--home .event-meta { grid-column: 1; }
  .event-hero.event-hero--home .hero-actions { grid-column: 2; grid-row: 2; justify-content: flex-end !important; }
  .event-hero.event-hero--home h1 { margin: 4px 0 8px !important; }
  .event-hero.event-hero--home .home-hero-copy { margin: 0 !important; max-width: 720px; }

  .site-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
    padding: 12px 4px;
  }

  .site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy) !important;
    text-decoration: none;
  }

  .site-brand__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
  }

  .site-brand strong { display: block; font-size: 1.12rem; letter-spacing: .1em !important; }
  .site-brand small { display: block; color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .04em; }

  .site-nav { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .site-nav a {
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--muted) !important;
    font-size: .78rem !important;
    font-weight: 800;
    text-decoration: none;
  }
  .site-nav a:hover { background: #fff0eb; color: var(--accent) !important; }

  .home-status { display: inline-flex; align-items: center; gap: 7px; }
  .home-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #16a15a; box-shadow: 0 0 0 4px rgba(22,161,90,.16); }
  .home-section-heading__copy { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
}

@media (max-width: 760px) {
  .site-topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-nav { justify-content: flex-start; }
  .page-shell { width: min(100% - 20px, 680px); padding-top: 12px; }
  .event-hero.event-hero--home { display: block !important; padding: 22px 18px !important; }
  .event-hero.event-hero--home .event-meta { margin-top: 16px !important; }
  .event-hero.event-hero--home .hero-actions { margin-top: 16px !important; justify-content: flex-start !important; }
  .event-hero, .admin-hero { padding: 22px 18px !important; border-radius: 10px !important; }
  .event-hero h1, .admin-hero h1 { font-size: clamp(1.8rem, 9vw, 2.8rem) !important; }
  .event-hero .event-meta { display: grid !important; gap: 5px !important; }
  .hero-actions, .home-quick-actions { justify-content: flex-start !important; }
  .hero-actions > *, .home-quick-actions > * { flex: 1 1 auto; text-align: center; }
  .home-quick-access { display: grid !important; gap: 12px !important; }
  .listing-grid { grid-template-columns: 1fr !important; }
  .listing-card-main { padding: 18px !important; }
  .listing-card-main strong { font-size: 1.15rem !important; }
  .results-panel, .side-panel { padding: 12px !important; }
  .table-wrap { overflow-x: auto !important; }
  table { min-width: 620px; }
  .cronos-hub { width: calc(100% - 16px) !important; }
  .crono-screen__head h2 { font-size: 1.25rem !important; }
}

.points-form,
.points-form > *,
.points-grid > *,
.category-name-grid > *,
.date-points-row > * {
  max-width: 100%;
  min-width: 0;
}

.points-check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  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 {
  width: 100%;
  min-width: 0;
  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;
}

.admin-preview-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-left: 5px solid #d31025;
  background: #fff1f2;
  color: #172332;
}

.admin-preview-banner strong {
  color: #d31025;
  text-transform: uppercase;
}

.admin-preview-banner a {
  margin-left: auto;
  color: #172332;
  font-weight: 900;
}

/* Panel unificado: tipografia clara, colores legibles y permisos */
body .live-button,
body .admin-home-card,
body .admin-table,
body .admin-tabs,
body .admin-actions,
body .permission-panel,
body .status-badge,
body .role-badge {
  font-family: "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0;
}

.pilot-admin-page .event-hero h1,
.pilot-admin-page .section-heading h2,
.pilot-admin-page .admin-home-card strong,
.pilot-admin-page .admin-table th {
  font-family: "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0;
}

.pilot-admin-page .event-hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.95;
}

.pilot-panel {
  padding: 24px;
  color: #172332;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
  box-shadow: 0 14px 32px rgba(23, 35, 50, 0.08);
}

.pilot-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.pilot-stats div {
  color: #172332;
  background: #fff;
  border: 1px solid #dce2e8;
  border-top: 4px solid #d10d1d;
  box-shadow: 0 8px 20px rgba(23, 35, 50, 0.07);
}

.pilot-stats div:nth-child(2) { border-top-color: #df6b1b; }
.pilot-stats div:nth-child(3) { border-top-color: #16805b; }
.pilot-stats div:nth-child(4) { border-top-color: #526170; }

.pilot-stats span {
  color: #647382;
  font-size: 0.78rem;
}

.pilot-stats strong {
  color: #172332;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 2.15rem;
}

.unified-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.unified-admin-grid .admin-home-card {
  min-height: 172px;
  gap: 9px;
  padding: 22px;
  border-top: 5px solid #d10d1d;
}

.unified-admin-grid .admin-home-card:nth-child(3n + 2) { border-top-color: #df6b1b; }
.unified-admin-grid .admin-home-card:nth-child(3n) { border-top-color: #16805b; }

.unified-admin-grid .admin-home-card strong {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.admin-table-wrap {
  color: #172332;
  background: #fff;
  border: 1px solid #d9e0e6;
  border-radius: 4px;
}

.admin-table {
  color: #172332;
  background: #fff;
}

.admin-table th {
  padding: 14px 13px;
  color: #fff;
  background: #172332;
  border-bottom-color: #172332;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-table td {
  color: #172332;
  background: #fff;
  border-bottom: 1px solid #e1e6eb;
}

.admin-table tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

.admin-table--pilots {
  min-width: 1450px;
}

.admin-table--pilots .col-pilot { width: 190px; }
.admin-table--pilots .col-email { width: 250px; }
.admin-table--pilots .col-birth { width: 120px; }
.admin-table--pilots .col-city { width: 160px; }
.admin-table--pilots .col-province { width: 150px; }
.admin-table--pilots .col-phone { width: 145px; }
.admin-table--pilots .col-created { width: 150px; }
.admin-table--pilots .col-status { width: 125px; }
.admin-table--pilots .col-role { width: 170px; }
.admin-table--pilots .col-actions { width: 300px; }

.admin-table button,
.admin-action-link,
.permission-actions button,
.permission-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: #d10d1d;
  border: 1px solid #d10d1d;
  border-radius: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-action-link {
  color: #172332;
  background: #e9edf1;
  border-color: #cfd7de;
}

.status-badge,
.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  color: #7c4d05;
  background: #fff3d5;
  border: 1px solid #e7ca86;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-badge {
  color: #526170;
  background: #eef1f4;
  border-color: #d3dae1;
}

.role-badge.is-admin {
  color: #0e694b;
  background: #e2f5ed;
  border-color: #a8d9c7;
}

.admin-tabs a {
  color: #526170;
  background: #eef1f4;
  border-color: #d6dde4;
}

.admin-tabs a.is-active {
  color: #fff;
  background: #d10d1d;
  border-color: #d10d1d;
}

.admin-correction-card,
.visit-admin-note {
  color: #172332;
  background: #f6f8fa;
  border-color: #dce2e8;
}

.admin-correction-card span,
.admin-correction-card small,
.visit-admin-note {
  color: #647382;
}

.permission-panel {
  max-width: 1120px;
  margin-inline: auto;
}

.permission-intro,
.permission-main-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: #526170;
  background: #f4f6f8;
  border-left: 4px solid #df6b1b;
  line-height: 1.5;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid #e0e5ea;
}

.permission-row > div:first-child,
.permission-row--head > span:first-child {
  padding: 13px 16px;
}

.permission-row strong,
.permission-row small {
  display: block;
}

.permission-row small {
  margin-top: 4px;
  color: #687684;
}

.permission-row--head {
  min-height: 48px;
  color: #fff;
  background: #172332;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.permission-row--head span:not(:first-child) {
  text-align: center;
}

.permission-check {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-left: 1px solid #e0e5ea;
  cursor: pointer;
}

.permission-check input {
  width: 22px;
  height: 22px;
  accent-color: #d10d1d;
}

.permission-check span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.permission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.permission-actions a {
  color: #172332;
  background: #eef1f4;
  border-color: #d3dae1;
}

@media (max-width: 860px) {
  .unified-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pilot-panel { padding: 16px; }
  .unified-admin-grid { grid-template-columns: 1fr; }
  .permission-row { grid-template-columns: minmax(0, 1fr) 70px 70px; }
  .permission-row small { font-size: 0.74rem; }
}

.visit-admin-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  font-weight: 700;
}

.visit-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 30px;
}

.visit-stats div {
  min-width: 0;
  padding: 16px;
  color: #fff;
  background: rgba(32, 42, 53, 0.92);
  border-top: 4px solid var(--accent);
}

.visit-stats span {
  display: block;
  color: #c5ced7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.visit-stats strong {
  display: block;
  margin-top: 7px;
  font-size: 27px;
}

.visit-action-badge {
  display: inline-block;
  padding: 5px 7px;
  color: #fff;
  background: #182536;
  font-size: 11px;
  font-weight: 900;
}

.visit-action-badge--comparison {
  background: var(--accent);
}

.visit-detail {
  display: block;
  min-width: 180px;
  max-width: 480px;
  color: var(--muted);
  white-space: normal;
  line-height: 1.35;
}

.visit-table td {
  vertical-align: top;
}

.visit-table--recent {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
}

.visit-table--recent .visit-col-date { width: 170px; }
.visit-table--recent .visit-col-pilot { width: 230px; }
.visit-table--recent .visit-col-action { width: 135px; }
.visit-table--recent .visit-col-visitor { width: 175px; }
.visit-table--recent .visit-col-championship { width: 310px; }
.visit-table--recent .visit-col-detail { width: auto; }

.visit-table--recent th,
.visit-table--recent td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.visit-table--recent th {
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.visit-table--recent th:first-child,
.visit-table--recent td:first-child,
.visit-table--recent th:nth-child(3),
.visit-table--recent td:nth-child(3) {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .visit-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.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;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.admin-delete-button {
  background: #991522 !important;
  border-color: #991522 !important;
}

.admin-profile-panel {
  max-width: 1120px;
  margin-inline: auto;
}

.admin-profile-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  color: #526170;
  background: #f4f6f8;
  border-left: 4px solid #df6b1b;
  line-height: 1.45;
}

.admin-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-profile-form label {
  display: grid;
  gap: 7px;
  color: #354454;
  font-weight: 800;
}

.admin-profile-form input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: #172332;
  background: #fff;
  border: 1px solid #cbd4dc;
  border-radius: 4px;
  font: inherit;
}

.admin-profile-form input:focus {
  outline: 3px solid rgba(209, 13, 29, 0.12);
  border-color: #d10d1d;
}

.admin-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.admin-profile-actions button,
.admin-profile-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  background: #d10d1d;
  border: 1px solid #d10d1d;
  border-radius: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-profile-actions a {
  color: #172332;
  background: #eef1f4;
  border-color: #cfd7de;
}

@media (max-width: 700px) {
  .admin-profile-form {
    grid-template-columns: 1fr;
  }
}

.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);
}

.results-panel .laps-cutoff-separator td {
  position: static;
  width: auto;
  max-width: none;
  padding: 8px 12px;
  color: #fff !important;
  background: #172332 !important;
  border-top: 4px solid var(--vicron-red, #e30518);
  border-bottom: 0;
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.results-panel tr.is-outside-laps-percentage td {
  color: #6d7680;
  background: #f1f3f5;
}

.results-panel tr.is-outside-laps-percentage:hover td {
  background: #e9edf0;
}

.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);
}

.compare-laps-button {
  min-height: 42px;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 0 16px;
  color: #fff;
  background: #46576a;
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.compare-laps-button:hover,
.compare-laps-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.lap-compare-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(23, 35, 50, 0.12);
  border-bottom: 1px solid rgba(23, 35, 50, 0.12);
  padding: 12px 16px;
  background: #f4f6f8;
}

.lap-compare-toolbar[hidden],
.lap-compare-picker[hidden],
.pilot-laps-row[hidden],
.lap-comparison[hidden] {
  display: none !important;
}

.lap-compare-toolbar strong {
  color: var(--text);
}

.lap-compare-toolbar span {
  margin-right: auto;
  color: var(--muted);
  font-weight: 800;
}

.lap-compare-toolbar button {
  min-height: 38px;
  border: 1px solid var(--accent);
  padding: 0 13px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.lap-compare-toolbar button.is-secondary {
  color: var(--text);
  border-color: rgba(23, 35, 50, 0.2);
  background: #fff;
}

.lap-compare-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.results-panel td.col-pilot:has(.pilot-laps-toggle) {
  position: relative;
}

.pilot-laps-toggle {
  display: inline-flex;
  max-width: calc(100% - 34px);
  gap: 8px;
  align-items: center;
  border: 0;
  padding: 2px 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.pilot-laps-toggle > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilot-laps-toggle i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.pilot-laps-toggle[aria-expanded="true"] i {
  transform: translateY(2px) rotate(225deg);
}

.lap-compare-picker {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  vertical-align: middle;
  cursor: pointer;
}

.lap-compare-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lap-compare-picker span {
  width: 20px;
  height: 20px;
  border: 2px solid #8b98a6;
  background: #fff;
}

.lap-compare-picker input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.results-panel .pilot-laps-row > td,
.results-panel .pilot-laps-row > td:first-child {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  background: #101b28;
  box-shadow: none;
  white-space: normal;
}

.pilot-laps-detail {
  padding: 15px 18px 18px;
  color: #fff;
}

.pilot-laps-detail__heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pilot-laps-detail__heading span {
  color: #ffb24d;
  font-size: 0.82rem;
  font-weight: 900;
}

.pilot-laps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 7px;
}

.pilot-lap {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.05);
}

.pilot-lap span {
  color: #8f9baa;
  font-size: 0.78rem;
  font-weight: 900;
}

.pilot-lap strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.pilot-lap.is-best {
  border-color: rgba(227, 5, 24, 0.58);
  background: rgba(227, 5, 24, 0.16);
}

.pilot-lap.is-best strong {
  color: #ff6573;
}

.lap-comparison {
  margin: 16px;
  border: 1px solid rgba(23, 35, 50, 0.16);
  background: #fff;
}

.lap-comparison__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: #fff;
  background: #172332;
}

.lap-comparison__heading span {
  color: #ffb24d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lap-comparison__heading h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.lap-comparison__heading button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
}

.lap-comparison__table {
  overflow-x: auto;
}

.results-panel .lap-comparison__table table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.results-panel .lap-comparison__table th,
.results-panel .lap-comparison__table td,
.results-panel .lap-comparison__table th:first-child,
.results-panel .lap-comparison__table td:first-child {
  position: static;
  width: auto;
  min-width: 115px;
  max-width: none;
  padding: 11px 14px;
  background: #fff;
  box-shadow: none;
  text-align: center;
}

.results-panel .lap-comparison__table th:first-child,
.results-panel .lap-comparison__table td:first-child {
  min-width: 72px;
}

.lap-comparison__table thead th strong,
.lap-comparison__table thead th span {
  display: block;
}

.lap-comparison__table thead th span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.results-panel .lap-comparison__table td.is-best-lap {
  color: var(--accent) !important;
  background: rgba(227, 5, 24, 0.06);
  box-shadow: inset 0 -3px 0 var(--accent);
}

@media (max-width: 620px) {
  .compare-laps-button {
    margin: 8px 0 0;
  }

  .lap-compare-toolbar {
    align-items: stretch;
  }

  .lap-compare-toolbar strong,
  .lap-compare-toolbar span {
    width: 100%;
  }

  .lap-compare-toolbar button {
    flex: 1 1 145px;
  }

  .pilot-laps-detail {
    padding: 13px 10px 15px;
  }

  .pilot-laps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lap-comparison {
    margin: 10px;
  }
}

/* Detalle de vueltas integrado: contraste alto y lectura rapida. */
body:not(.admin-points-page):not(.live-page) .results-panel tr.is-laps-open > td,
body.live-page .results-panel tr.is-laps-open > td {
  background: #edf2f6;
  box-shadow: inset 0 -3px 0 #e30518;
}

body:not(.admin-points-page):not(.live-page) .results-panel .pilot-laps-row > td,
body:not(.admin-points-page):not(.live-page) .results-panel .pilot-laps-row:nth-child(even) > td,
body.live-page .results-panel .pilot-laps-row > td,
body.live-page .results-panel .pilot-laps-row:nth-child(even) > td {
  color: #fff;
  background:
    linear-gradient(115deg, rgba(227, 5, 24, 0.1), transparent 34%),
    #111d2b;
  box-shadow: inset 0 4px 0 #e30518;
}

.pilot-laps-detail {
  padding: 20px 22px 22px;
}

.pilot-laps-detail__heading {
  margin-bottom: 15px;
  color: #fff;
}

.pilot-laps-detail__heading strong {
  font-size: 0.92rem;
  letter-spacing: 0.025em;
}

.pilot-laps-detail__heading span {
  border: 1px solid rgba(255, 178, 77, 0.42);
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffc36f;
  background: rgba(255, 178, 77, 0.08);
}

.pilot-laps-grid {
  gap: 9px;
}

.pilot-lap {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: #1d2b3a;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.14);
}

.pilot-lap span {
  color: #9fb0c0;
}

.pilot-lap strong {
  color: #f7fafc;
}

.pilot-lap.is-best {
  border-color: #ff5a67;
  background: linear-gradient(135deg, rgba(227, 5, 24, 0.34), rgba(227, 5, 24, 0.15));
  box-shadow: inset 4px 0 0 #ff3345, 0 5px 14px rgba(0, 0, 0, 0.16);
}

.pilot-lap.is-best span,
.pilot-lap.is-best strong {
  color: #fff;
}

.pilot-lap.is-best strong::after {
  content: "  MEJOR";
  margin-left: 5px;
  color: #ffd3d7;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lap-comparison {
  border-color: rgba(23, 35, 50, 0.2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 34, 0.14);
}

.results-panel .lap-comparison__table thead th {
  color: #fff;
  background: #243447;
}

.results-panel .lap-comparison__table thead th span {
  color: #b9c6d2;
}

.results-panel .lap-comparison__table tbody tr:nth-child(even) td {
  background: #f2f5f8;
}

.results-panel .lap-comparison__table td.is-best-lap {
  color: #c70016 !important;
  background: #fff0f2 !important;
}

@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;
  }

  .visit-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: 230px;
  min-width: 230px;
  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 .date-start {
  border-left: 2px solid rgba(23, 35, 50, 0.2);
}

.table-wrap--points-detail .championship-table--detail .date-end {
  border-right: 2px solid rgba(23, 35, 50, 0.2);
}

.table-wrap--points-detail .championship-table--detail .date-subtotal {
  font-weight: 900;
  color: #172332;
}

.table-wrap--points-detail .championship-table--detail .date-tone-1 {
  background: #fffaf6;
}

.table-wrap--points-detail .championship-table--detail .date-tone-2 {
  background: #f4f8fb;
}

.table-wrap--points-detail .championship-table--detail .date-tone-3 {
  background: #f5faf5;
}

.table-wrap--points-detail .championship-table--detail .date-tone-4 {
  background: #faf7fb;
}

.table-wrap--points-detail .championship-table--detail .date-group.date-tone-1,
.table-wrap--points-detail .championship-table--detail thead .date-tone-1 {
  background: #fff0e5;
}

.table-wrap--points-detail .championship-table--detail .date-group.date-tone-2,
.table-wrap--points-detail .championship-table--detail thead .date-tone-2 {
  background: #e8f1f7;
}

.table-wrap--points-detail .championship-table--detail .date-group.date-tone-3,
.table-wrap--points-detail .championship-table--detail thead .date-tone-3 {
  background: #e9f3e9;
}

.table-wrap--points-detail .championship-table--detail .date-group.date-tone-4,
.table-wrap--points-detail .championship-table--detail thead .date-tone-4 {
  background: #f1eaf3;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .date-tone-1 {
  background: #f8eee7;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .date-tone-2 {
  background: #eaf1f5;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .date-tone-3 {
  background: #eaf2ea;
}

.table-wrap--points-detail .championship-table--detail tbody tr:nth-child(even) .date-tone-4 {
  background: #f0eaf2;
}

.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: 200px;
    min-width: 200px;
  }

  .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(auto-fit, minmax(150px, 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-existing-results {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(23, 35, 50, 0.16);
  border-left: 4px solid #64748b;
  background: #f7f9fb;
}

.manual-existing-results.has-results {
  border-left-color: var(--accent);
  background: rgba(214, 95, 31, 0.06);
}

.manual-existing-results__title {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-existing-results__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.manual-existing-results__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 5px 5px 9px;
  border: 1px solid rgba(23, 35, 50, 0.15);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
}

.manual-existing-results__delete {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(176, 30, 45, 0.3);
  background: rgba(176, 30, 45, 0.08);
  color: #a71928;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.manual-existing-results__delete:hover,
.manual-existing-results__delete:focus-visible {
  background: #a71928;
  color: #fff;
}

.manual-batch-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #b8c3ce;
  border-left: 4px solid #168647;
  background: #f3f7f5;
}

.manual-batch-preview__heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.manual-batch-preview__heading > div {
  display: grid;
  gap: 3px;
}

.manual-batch-preview__heading strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.manual-batch-preview__heading span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.manual-batch-preview__warning,
.manual-batch-result__error {
  color: #a71928 !important;
  font-weight: 900 !important;
}

.manual-batch-preview__list {
  display: grid;
  gap: 8px;
}

.manual-batch-result {
  border: 1px solid #c2cbd4;
  background: #fff;
}

.manual-batch-result.has-error {
  border-color: rgba(167, 25, 40, 0.45);
}

.manual-batch-result summary {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) minmax(150px, 1fr) minmax(130px, auto) auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 9px 12px;
  color: #172332;
  background: #eef2f5;
  cursor: pointer;
  list-style-position: inside;
}

.manual-batch-result summary span,
.manual-batch-result summary strong,
.manual-batch-result summary em,
.manual-batch-result summary b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.manual-batch-result summary span {
  font-size: 0.78rem;
  font-weight: 850;
}

.manual-batch-result summary strong,
.manual-batch-result summary em,
.manual-batch-result summary b {
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.manual-batch-result summary em {
  color: #b74412;
}

.manual-batch-result summary b {
  color: #405164;
  text-align: right;
}

.manual-batch-table-wrap {
  overflow-x: auto;
  border-top: 1px solid rgba(23, 35, 50, 0.12);
}

.manual-batch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.manual-batch-table th,
.manual-batch-table td {
  padding: 7px 9px;
  border-bottom: 1px solid rgba(23, 35, 50, 0.1);
  text-align: left;
  white-space: nowrap;
}

.manual-batch-table th {
  color: #33465a;
  background: #edf1f4;
  font-weight: 950;
  text-transform: uppercase;
}

.manual-batch-result__error,
.manual-batch-result__observations {
  padding: 10px 12px;
  border-top: 1px solid rgba(23, 35, 50, 0.12);
  font-size: 0.78rem;
}

.manual-batch-result__observations strong {
  margin-right: 8px;
  color: var(--accent);
  text-transform: uppercase;
}

@media (max-width: 850px) {
  .manual-batch-preview__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .manual-batch-result summary {
    grid-template-columns: 1fr 1fr;
  }

  .manual-batch-result summary b {
    text-align: left;
  }
}

.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-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.manual-file-row input[type="file"] {
  flex: 1 1 280px;
  min-height: 44px;
  padding: 9px;
  border: 1px solid rgba(23, 35, 50, 0.18);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.manual-pdf-box small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.manual-paste-box .secondary-link {
  width: fit-content;
  cursor: pointer;
}

.manual-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(23, 35, 50, 0.14);
  background: #fff;
}

.manual-table {
  width: 100%;
  min-width: 1240px;
  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: 115px;
}

.manual-table th:nth-child(5),
.manual-table td:nth-child(5) {
  width: 90px;
}

.manual-table th:nth-child(6),
.manual-table td:nth-child(6),
.manual-table th:nth-child(7),
.manual-table td:nth-child(7),
.manual-table th:nth-child(8),
.manual-table td:nth-child(8),
.manual-table th:nth-child(9),
.manual-table td:nth-child(9) {
  width: 120px;
}

.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;
  padding: 16px 18px;
  font-weight: 900;
  line-height: 1.45;
}

.manual-admin-page .form-success {
  border: 1px solid #91c7a7;
  border-left: 6px solid #168647;
  background: #e8f5ed;
  color: #124b2c;
}

.manual-admin-page .form-error {
  border: 1px solid #e3a5ac;
  border-left: 6px solid #b01e2d;
  background: #fff0f1;
  color: #7e1420;
}

.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) {
  .admin-points-page .page-shell {
    width: min(100% - 24px, 760px);
  }

  .admin-points-page .admin-hero {
    display: grid;
    min-height: 0;
    padding: 26px;
  }

  .admin-points-page .admin-hero > div:first-child,
  .admin-points-page .admin-hero .hero-actions {
    width: 100%;
  }

  .admin-points-page .admin-hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .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) {
  .admin-points-page .page-shell {
    width: calc(100% - 18px);
  }

  .admin-points-page .admin-hero {
    margin-bottom: 20px;
    padding: 20px;
  }

  .admin-points-page .admin-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .admin-points-page .admin-hero .hero-actions {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table {
    width: max-content;
    min-width: 880px;
    table-layout: fixed;
    font-size: 0.76rem;
  }

  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table th,
  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table td {
    padding: 9px 10px;
    font-weight: 800;
  }

  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table th:nth-child(2),
  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table td:nth-child(2),
  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table th:nth-child(3),
  .table-wrap:not(.table-wrap--compact) .admin-guest-points__table td:nth-child(3) {
    width: 190px;
    max-width: 210px;
    white-space: normal;
  }

  .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;
}

@media (max-width: 720px) {
  .results-layout {
    gap: 14px;
  }

  .results-panel .results-heading {
    gap: 12px;
    padding: 18px 14px;
  }

  .results-panel .results-heading h2 {
    font-size: 1.7rem;
    line-height: 1;
  }

  .championship-actions {
    width: 100%;
    justify-content: stretch;
  }

  .championship-actions a {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
    font-size: 0.94rem;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) {
    min-width: 0;
    table-layout: auto;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) thead {
    display: none;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #f4f6f8;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) tr {
    display: grid;
    grid-template-columns: 44px 56px minmax(0, 1fr) auto;
    gap: 4px 8px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(23, 35, 50, 0.12);
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(1) {
    grid-row: span 2;
    align-self: stretch;
    display: grid;
    place-items: center;
    color: #fff;
    background: #172332;
    font-size: 1rem;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(2) {
    grid-row: span 2;
    display: grid;
    place-items: center;
    color: #d65f1f;
    background: #fff0e4;
    font-size: 1rem;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(3) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(4) {
    grid-column: 3 / 5;
    color: #667482;
    font-size: 0.76rem;
    text-align: left;
    text-transform: uppercase;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(5) {
    grid-column: 4;
    grid-row: 1;
    color: #d65f1f;
    font-size: 1.1rem;
    text-align: right;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(5)::before {
    content: "Pts ";
    color: #667482;
    font-size: 0.68rem;
    text-transform: uppercase;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(6) {
    grid-column: 4;
    color: #667482;
    font-size: 0.74rem;
    text-align: right;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(6)::before {
    content: "Dif ";
  }

  .pilot-wins {
    margin-left: 5px;
    font-size: 0.78rem;
  }

  .table-wrap--points-detail {
    margin: 0;
  }

  .points-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    padding: 12px 14px;
    font-size: 0.78rem;
  }

  .points-legend strong {
    grid-column: 1 / -1;
  }

  .admin-guest-points {
    margin: 12px;
  }

  .admin-guest-points__heading {
    display: grid;
    padding: 13px;
  }

  .admin-guest-points__heading h3 {
    font-size: 1rem;
    line-height: 1.1;
  }

  .admin-guest-points__heading span {
    font-size: 0.72rem;
  }

  .admin-guest-points__date {
    padding: 12px;
  }

  .admin-guest-points__date .table-wrap {
    overflow: visible;
  }

  .results-panel .admin-guest-points__table {
    min-width: 0;
    table-layout: auto;
  }

  .results-panel .admin-guest-points__table thead {
    display: none;
  }

  .results-panel .admin-guest-points__table tbody {
    display: grid;
    gap: 10px;
  }

  .results-panel .admin-guest-points__table tr {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(214, 95, 31, 0.18);
  }

  .results-panel .admin-guest-points__table td {
    display: block;
    width: auto !important;
    max-width: none !important;
    padding: 0;
    border: 0;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: left !important;
    white-space: normal;
  }

  .results-panel .admin-guest-points__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #667482;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .results-panel .admin-guest-points__table td:nth-child(1) {
    grid-row: span 2;
    display: grid;
    place-items: center;
    color: #fff;
    background: #172332;
    font-size: 1rem;
    text-align: center !important;
  }

  .results-panel .admin-guest-points__table td:nth-child(1)::before {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
  }

  .results-panel .admin-guest-points__table td:nth-child(2),
  .results-panel .admin-guest-points__table td:nth-child(3) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .results-panel .admin-guest-points__table td:nth-child(n+4) {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding-top: 7px;
    border-top: 1px solid rgba(23, 35, 50, 0.08);
  }

  .results-panel .admin-guest-points__table td:nth-child(n+4)::before {
    margin: 0;
  }

  .results-panel .admin-guest-points__table td:nth-child(8) {
    color: #d65f1f;
    font-size: 0.95rem;
  }
}

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);
}

/* Encabezado comun: compacto, claro y sin adornos en forma de corchetes. */
.event-hero,
.event-hero--home,
.admin-hero {
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 34, 0.16);
}

body:not(.admin-points-page):not(.live-page) .event-hero,
body.live-page .event-hero {
  min-height: 168px;
  padding: 24px 30px;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home {
  min-height: 190px;
}

body:not(.admin-points-page):not(.live-page) .event-hero h1,
body.live-page .event-hero h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

body:not(.admin-points-page):not(.live-page) .hero-actions,
body.live-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

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 {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  box-shadow: none;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.admin-version {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 177, 94, 0.45);
  border-radius: 5px;
  background: rgba(228, 90, 24, 0.22);
  color: #ffd39e;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.pilot-admin-page .event-hero {
  min-height: 156px;
}

body.pilot-admin-page .event-hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

@media (max-width: 760px) {
  body:not(.admin-points-page):not(.live-page) .event-hero,
  body.live-page .event-hero {
    min-height: 0;
    padding: 22px 20px;
  }

  body:not(.admin-points-page):not(.live-page) .event-hero--home {
    min-height: 0;
  }

  body:not(.admin-points-page):not(.live-page) .hero-actions,
  body.live-page .hero-actions {
    justify-content: flex-start;
  }

body:not(.admin-points-page):not(.live-page) .live-button,
body.live-page .live-button {
    flex: 1 1 145px;
    justify-content: center;
  }
}

/* Ajuste final del encabezado compartido. */
body:not(.admin-points-page):not(.live-page) .event-hero,
body.live-page .event-hero {
  min-height: 168px !important;
  padding: 24px 30px !important;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home {
  min-height: 190px !important;
}

body:not(.admin-points-page):not(.live-page) .event-hero h1,
body.live-page .event-hero h1 {
  max-width: 760px !important;
  font-size: clamp(2.2rem, 4vw, 4.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

body:not(.admin-points-page):not(.live-page) .hero-actions,
body.live-page .hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

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 {
  min-height: 40px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
}

body:not(.admin-points-page):not(.live-page) .live-button::before,
body.live-page .live-button::before,
body.admin-points-page .live-button::before {
  display: none !important;
  content: none !important;
  margin: 0 !important;
}

body.admin-points-page .admin-hero {
  min-height: 156px !important;
  margin-bottom: 24px !important;
  padding: 24px 28px !important;
  border-radius: 8px !important;
  background: linear-gradient(120deg, #151719 0%, #25384b 72%, #c94f1b 100%) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 34, 0.16) !important;
}

body.admin-points-page .admin-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

body.admin-points-page .admin-hero .hero-actions {
  display: flex !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100%;
  grid-template-columns: none !important;
  gap: 8px !important;
}

body.admin-points-page .admin-hero .hero-actions > a,
body.admin-points-page .admin-hero .hero-actions > form,
body.admin-points-page .admin-hero .hero-actions > form > button,
body.admin-points-page .admin-hero .hero-actions .live-button {
  width: auto !important;
  min-height: 40px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
}

@media (max-width: 760px) {
  body:not(.admin-points-page):not(.live-page) .event-hero,
  body.live-page .event-hero,
  body.admin-points-page .admin-hero {
    min-height: 0 !important;
    padding: 20px !important;
  }

  body.admin-points-page .admin-hero .hero-actions {
    justify-content: flex-start;
  }
}

/* Ultimo ajuste mobile: botones publicos chicos en todas las paginas de resultados. */
body:not(.admin-points-page) .event-hero .hero-actions,
body.live-page .event-hero .hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
}

body:not(.admin-points-page) .event-hero .live-button,
body.live-page .event-hero .live-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body:not(.admin-points-page) .event-hero .hero-actions,
  body.live-page .event-hero .hero-actions {
    margin-top: 16px !important;
  }

  body:not(.admin-points-page) .event-hero .live-button,
  body.live-page .event-hero .live-button {
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }
}

/* Rediseño integral final: sobrescribe estilos antiguos en todas las pantallas. */
:root { --bg:#edf1f5 !important; --panel:#fff !important; --line:#d6dee7 !important; --text:#162437 !important; --muted:#6b7a8a !important; --accent:#df1730 !important; --navy:#162437 !important; }
body { background:#edf1f5 !important; color:var(--text) !important; font-family:Inter,"Segoe UI",Arial,sans-serif !important; font-size:15px !important; }
.page-shell { width:min(1440px,calc(100% - 40px)) !important; padding:24px 0 44px !important; }
.event-hero,.admin-hero,.er-hero,.cronos-hub__head { min-height:0 !important; padding:26px 30px !important; border:1px solid rgba(255,255,255,.08) !important; border-bottom:4px solid var(--accent) !important; border-radius:14px !important; background:linear-gradient(115deg,#142235 0%,#20354b 68%,#823d2a 150%) !important; box-shadow:0 18px 34px rgba(22,36,55,.16) !important; }
.event-hero h1,.admin-hero h1,.er-hero h1,.cronos-hub__head h1 { font-size:clamp(2rem,4vw,3.6rem) !important; line-height:1 !important; margin:6px 0 10px !important; }
.event-hero .eyebrow,.admin-hero p:first-child,.listing-kicker { color:#ffad55 !important; font-size:.72rem !important; letter-spacing:.1em !important; }
.home-hero-copy { max-width:720px !important; margin:0 !important; color:#d7e0e8 !important; font-size:.96rem !important; }
.hero-actions { gap:8px !important; }
.live-button,.secondary-link,.download-pdf,.championship-card__link,.championship-actions a,button,input[type="submit"] { min-height:38px !important; padding:9px 13px !important; border-radius:7px !important; box-shadow:none !important; font-size:.8rem !important; font-weight:800 !important; }
.listing-grid { gap:14px !important; }
.listing-card,.results-panel,.side-panel,.home-quick-access,.admin-home-card,.championship-card,.speedhive-category-card,.program-box,.auth-panel { overflow:hidden !important; border:1px solid var(--line) !important; border-radius:12px !important; background:#fff !important; box-shadow:0 8px 22px rgba(22,36,55,.12) !important; }
.listing-card { border-left:4px solid var(--accent) !important; }
.listing-card-main { min-height:152px !important; padding:20px 22px !important; }
.listing-card-main strong { font-size:1.3rem !important; line-height:1.08 !important; }
.listing-card-actions { gap:6px !important; padding:12px 16px !important; background:#f6f8fa !important; }
.home-section-heading { margin:30px 0 14px !important; }
.results-panel,.side-panel { padding:18px !important; }
.table-wrap { border:1px solid var(--line) !important; border-radius:9px !important; box-shadow:none !important; }
table { font-size:.86rem !important; }
th { padding:10px 11px !important; background:var(--navy) !important; color:#fff !important; font-size:.7rem !important; }
td { padding:10px 11px !important; }
tbody tr:nth-child(even) { background:#f7f9fb !important; }
input,select,textarea { min-height:40px !important; border:1px solid #cbd5df !important; border-radius:7px !important; font-size:.9rem !important; }
label { color:var(--navy) !important; font-size:.8rem !important; font-weight:800 !important; }
.admin-home-card { min-height:140px !important; padding:20px !important; }
.admin-championship-card.is-active { border-left:4px solid var(--accent) !important; }
.cronos-hub { width:min(1500px,calc(100% - 32px)) !important; }
.crono-screen { overflow:hidden !important; border:1px solid var(--line) !important; border-radius:10px !important; box-shadow:0 10px 22px rgba(22,36,55,.12) !important; }
.crono-screen__head { padding:18px !important; background:var(--navy) !important; }
@media (max-width:760px) {
  .page-shell { width:calc(100% - 20px) !important; padding-top:12px !important; }
  .event-hero,.admin-hero,.er-hero,.cronos-hub__head { padding:20px 17px !important; border-radius:10px !important; }
  .event-hero h1,.admin-hero h1,.er-hero h1,.cronos-hub__head h1 { font-size:2rem !important; }
  .listing-grid { grid-template-columns:1fr !important; }
  .listing-card-main { min-height:0 !important; padding:18px !important; }
  .results-panel,.side-panel { padding:11px !important; }
  .table-wrap { overflow-x:auto !important; }
  table { min-width:620px !important; }
}

/* VICRON REDISEÑO FINAL */
:root { --bg:#edf1f5 !important; --panel:#fff !important; --line:#d6dee7 !important; --text:#162437 !important; --muted:#6b7a8a !important; --accent:#df1730 !important; --navy:#162437 !important; }
body { background:#edf1f5 !important; color:var(--text) !important; font-family:Inter,"Segoe UI",Arial,sans-serif !important; font-size:15px !important; }
body::before { opacity:.16 !important; }
.page-shell { width:min(1440px,calc(100% - 40px)) !important; padding:24px 0 44px !important; }
.event-hero,.admin-hero,.er-hero,.cronos-hub__head { min-height:0 !important; padding:26px 30px !important; border:1px solid rgba(255,255,255,.08) !important; border-bottom:4px solid var(--accent) !important; border-radius:14px !important; background:linear-gradient(115deg,#142235 0%,#20354b 68%,#823d2a 150%) !important; box-shadow:0 18px 34px rgba(22,36,55,.16) !important; }
.event-hero h1,.admin-hero h1,.er-hero h1,.cronos-hub__head h1 { font-size:clamp(2rem,4vw,3.6rem) !important; line-height:1 !important; margin:6px 0 10px !important; }
.event-hero .eyebrow,.admin-hero p:first-child,.listing-kicker { color:#ffad55 !important; font-size:.72rem !important; letter-spacing:.1em !important; }
.home-hero-copy { max-width:720px !important; margin:0 !important; color:#d7e0e8 !important; font-size:.96rem !important; }
.hero-actions { gap:8px !important; }
.live-button,.secondary-link,.download-pdf,.championship-card__link,.championship-actions a,button,input[type="submit"] { min-height:38px !important; padding:9px 13px !important; border-radius:7px !important; box-shadow:none !important; font-size:.8rem !important; font-weight:800 !important; }
.listing-grid { gap:14px !important; }
.listing-card,.results-panel,.side-panel,.home-quick-access,.admin-home-card,.championship-card,.speedhive-category-card,.program-box,.auth-panel { overflow:hidden !important; border:1px solid var(--line) !important; border-radius:12px !important; background:#fff !important; box-shadow:0 8px 22px rgba(22,36,55,.12) !important; }
.listing-card { border-left:4px solid var(--accent) !important; }
.listing-card-main { min-height:152px !important; padding:20px 22px !important; }
.listing-card-main strong { font-size:1.3rem !important; line-height:1.08 !important; }
.listing-card-actions { gap:6px !important; padding:12px 16px !important; background:#f6f8fa !important; }
.home-section-heading { margin:30px 0 14px !important; }
.results-panel,.side-panel { padding:18px !important; }
.table-wrap { border:1px solid var(--line) !important; border-radius:9px !important; box-shadow:none !important; }
table { font-size:.86rem !important; }
th { padding:10px 11px !important; background:var(--navy) !important; color:#fff !important; font-size:.7rem !important; }
td { padding:10px 11px !important; }
tbody tr:nth-child(even) { background:#f7f9fb !important; }
input,select,textarea { min-height:40px !important; border:1px solid #cbd5df !important; border-radius:7px !important; font-size:.9rem !important; }
label { color:var(--navy) !important; font-size:.8rem !important; font-weight:800 !important; }
.admin-home-card { min-height:140px !important; padding:20px !important; }
.admin-championship-card.is-active { border-left:4px solid var(--accent) !important; }
.cronos-hub { width:min(1500px,calc(100% - 32px)) !important; }
.crono-screen { overflow:hidden !important; border:1px solid var(--line) !important; border-radius:10px !important; box-shadow:0 10px 22px rgba(22,36,55,.12) !important; }
.crono-screen__head { padding:18px !important; background:var(--navy) !important; }
@media (max-width:760px) {
  .page-shell { width:calc(100% - 20px) !important; padding-top:12px !important; }
  .event-hero,.admin-hero,.er-hero,.cronos-hub__head { padding:20px 17px !important; border-radius:10px !important; }
  .event-hero h1,.admin-hero h1,.er-hero h1,.cronos-hub__head h1 { font-size:2rem !important; }
  .listing-grid { grid-template-columns:1fr !important; }
  .listing-card-main { min-height:0 !important; padding:18px !important; }
  .results-panel,.side-panel { padding:11px !important; }
  .table-wrap { overflow-x:auto !important; }
  table { min-width:620px !important; }
  .cronos-hub { width:calc(100% - 12px) !important; }
}

/* Pagina publica ER KART */
.er-kart-page .page-shell {
  width: min(1420px, calc(100% - 36px));
}

.er-hero {
  position: relative;
  display: grid;
  min-height: 520px;
  overflow: hidden;
  margin-bottom: 24px;
  color: #fff;
  background: #111923;
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(15, 23, 34, 0.22);
}

.er-hero__media {
  position: absolute;
  inset: 0;
}

.er-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.er-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 20, 30, 0.96) 0%, rgba(13, 20, 30, 0.82) 40%, rgba(13, 20, 30, 0.3) 100%),
    linear-gradient(0deg, rgba(13, 20, 30, 0.64), transparent 52%);
}

.er-hero__content {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 780px;
  padding: 42px;
}

.er-back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.er-back-link:hover {
  color: #fff;
}

.er-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.82;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.er-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 800;
  line-height: 1.38;
}

.er-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.er-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: #172332;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
}

.er-button--primary {
  color: #fff;
  background: var(--vicron-red);
  border-color: var(--vicron-red);
}

.er-button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.er-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.er-feature-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  padding: 18px;
  color: #172332;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
  border-top: 5px solid #f07a22;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(15, 23, 34, 0.08);
  text-decoration: none;
}

.er-feature-card--primary {
  color: #fff;
  background: linear-gradient(135deg, #d20d24, #ef6e20);
  border-color: transparent;
  border-top-color: #172332;
}

.er-feature-card span {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-transform: uppercase;
}

.er-feature-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1.02;
}

.er-feature-card small {
  display: block;
  margin-top: 18px;
  color: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  opacity: 0.7;
}

.secondary-link--featured {
  color: #fff;
  background: var(--vicron-red);
  border-color: var(--vicron-red);
}

@media (max-width: 980px) {
  .er-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .er-kart-page .page-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .er-hero {
    min-height: 560px;
    border-radius: 8px;
  }

  .er-hero::after {
    background:
      linear-gradient(180deg, rgba(13, 20, 30, 0.2) 0%, rgba(13, 20, 30, 0.82) 44%, rgba(13, 20, 30, 0.97) 100%);
  }

  .er-hero__content {
    padding: 24px 18px;
  }

  .er-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .er-hero__actions {
    gap: 7px;
  }

  .er-button {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 0.72rem;
  }

  .er-feature-grid {
    grid-template-columns: 1fr;
  }

  .er-feature-card {
    min-height: 138px;
  }
}

/* Portada de resultados */
body:not(.admin-points-page):not(.live-page) .event-hero--home {
  position: relative;
  overflow: hidden;
  align-items: center;
  min-height: 245px !important;
  padding: 30px !important;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(18, 27, 39, 0.98) 0%, rgba(28, 45, 63, 0.95) 58%, rgba(208, 72, 18, 0.92) 100%),
    #172332;
  border: 0;
  border-bottom: 5px solid var(--vicron-red);
}

body:not(.admin-points-page):not(.live-page) .event-hero--home::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 42%);
  opacity: 0.45;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home .eyebrow {
  color: #ffb15e;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home h1 {
  color: #fff;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.home-hero-copy {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home .event-meta {
  color: rgba(255, 255, 255, 0.76);
}

body:not(.admin-points-page) .event-hero--home .live-button {
  color: #172332 !important;
  background: #fff !important;
  border-color: rgba(255, 255, 255, 0.88) !important;
}

body:not(.admin-points-page) .event-hero--home .live-button--primary {
  color: #fff !important;
  background: var(--vicron-red) !important;
  border-color: var(--vicron-red) !important;
}

.home-quick-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: -14px 0 24px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
  border-left: 5px solid #f07a22;
  box-shadow: 0 14px 28px rgba(24, 38, 52, 0.08);
}

.home-quick-access strong {
  display: block;
  margin-top: 4px;
  color: #172332;
  font-size: 1.08rem;
  font-weight: 950;
}

.home-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.home-quick-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  color: #172332;
  background: #f4f6f8;
  border: 1px solid rgba(23, 35, 50, 0.14);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.home-quick-actions a:first-child {
  color: #fff;
  background: var(--vicron-red);
  border-color: var(--vicron-red);
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.home-section-heading h2 {
  margin: 0;
  color: #172332;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
}

@media (max-width: 760px) {
  body:not(.admin-points-page):not(.live-page) .event-hero--home {
    min-height: 0 !important;
    padding: 22px 18px !important;
  }

  .home-hero-copy {
    margin-top: 8px;
    font-size: 0.94rem;
  }

  .home-quick-access,
  .home-section-heading {
    grid-template-columns: 1fr;
  }

  .home-quick-access {
    margin-top: 12px;
    padding: 15px;
  }

  .home-quick-actions {
    justify-content: flex-start;
  }

  .home-quick-actions a {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 0.72rem;
  }

  .home-section-heading {
    display: grid;
    align-items: start;
  }
}

/* Prioridad final: botones publicos chicos en todas las paginas de resultados. */
body:not(.admin-points-page) .event-hero .hero-actions,
body.live-page .event-hero .hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
}

body:not(.admin-points-page) .event-hero .live-button,
body.live-page .event-hero .live-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body:not(.admin-points-page) .event-hero .hero-actions,
  body.live-page .event-hero .hero-actions {
    margin-top: 16px !important;
  }

  body:not(.admin-points-page) .event-hero .live-button,
  body.live-page .event-hero .live-button {
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }
}

/* Botonera publica compacta: evita botones gigantes en celulares. */
body:not(.admin-points-page) .event-hero .hero-actions,
body.live-page .event-hero .hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
}

body:not(.admin-points-page) .event-hero .live-button,
body.live-page .event-hero .live-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body:not(.admin-points-page) .event-hero .hero-actions,
  body.live-page .event-hero .hero-actions {
    margin-top: 16px !important;
  }

  body:not(.admin-points-page) .event-hero .live-button,
  body.live-page .event-hero .live-button {
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }
}

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-pilot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.podium-pilot__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-pilot .pilot-wins {
  flex: 0 0 auto;
  margin-left: 0;
}

.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));
  }
}

/* Portal y directorio publico de pilotos */
.pilot-home-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 22px 0;
  padding: 22px 24px;
  color: #fff;
  background: #172332;
  border-left: 6px solid var(--vicron-red);
  box-shadow: 0 14px 30px rgba(15, 23, 34, 0.12);
}

.pilot-home-access > div:first-child {
  display: grid;
  gap: 6px;
}

.pilot-home-access strong {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0;
}

.pilot-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pilot-home-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  color: #fff;
  text-decoration: none;
  background: var(--vicron-red);
  border: 1px solid var(--vicron-red);
  font-weight: 900;
}

.pilot-home-actions a:last-child {
  color: #172332;
  background: #fff;
  border-color: #fff;
}

.pilot-directory-page .event-hero {
  margin-bottom: 24px;
}

.pilot-directory-page h1,
.pilot-directory-page h2,
.pilot-directory-page h3,
.pilot-directory-page .pilot-match-card strong {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.pilot-directory-page .live-button--plain {
  color: #fff;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
}

.pilot-directory-panel {
  margin-bottom: 26px;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
  box-shadow: 0 16px 34px rgba(15, 23, 34, 0.09);
}

.pilot-directory-heading {
  margin: 0;
  box-shadow: none !important;
}

.pilot-directory-filters {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(190px, 0.85fr) minmax(260px, 1.4fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(23, 35, 50, 0.12);
}

.pilot-directory-filters label {
  display: grid;
  gap: 7px;
  color: #172332;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pilot-directory-filters input,
.pilot-directory-filters select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #172332;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.25);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.pilot-directory-filters input:focus,
.pilot-directory-filters select:focus {
  outline: 3px solid rgba(227, 5, 24, 0.12);
  border-color: var(--vicron-red);
}

.pilot-directory-filters button,
.pilot-directory-filters > a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.pilot-directory-filters button {
  color: #fff;
  background: var(--vicron-red);
  border: 1px solid var(--vicron-red);
  cursor: pointer;
}

.pilot-directory-filters > a {
  color: #526170;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.2);
}

.pilot-directory-list,
.pilot-activity-list {
  display: grid;
}

.pilot-directory-row {
  display: grid;
  grid-template-columns: 120px minmax(260px, 1.6fr) 92px 82px 132px;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 12px 22px;
  color: #172332;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 35, 50, 0.1);
}

.pilot-directory-row:last-child,
.pilot-activity-row:last-child {
  border-bottom: 0;
}

.pilot-directory-row:hover,
.pilot-activity-row:hover {
  background: rgba(227, 5, 24, 0.045);
  box-shadow: inset 5px 0 0 var(--vicron-red);
}

.pilot-directory-number {
  color: var(--vicron-red);
  font-size: 1.18rem;
  font-weight: 1000;
  letter-spacing: 0;
}

.pilot-directory-name,
.pilot-activity-row > span {
  min-width: 0;
}

.pilot-directory-name strong,
.pilot-directory-name small,
.pilot-activity-row strong,
.pilot-activity-row small {
  display: block;
  letter-spacing: 0;
}

.pilot-directory-name strong,
.pilot-activity-row strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-directory-name small,
.pilot-activity-row small {
  margin-top: 3px;
  color: #687684;
  font-size: 0.8rem;
  font-weight: 750;
}

.pilot-directory-count {
  color: #526170;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.pilot-directory-action {
  color: var(--vicron-red);
  font-size: 0.82rem;
  font-weight: 950;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.pilot-profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.12);
  box-shadow: 0 16px 34px rgba(15, 23, 34, 0.09);
}

.pilot-profile-summary > div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid rgba(23, 35, 50, 0.1);
}

.pilot-profile-summary > div:last-child {
  border-right: 0;
}

.pilot-profile-summary span,
.pilot-profile-summary strong {
  display: block;
  letter-spacing: 0;
}

.pilot-profile-summary span {
  color: #687684;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-profile-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #172332;
  font-size: 1.35rem;
  font-weight: 950;
}

.pilot-activity-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.3fr) 124px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 13px 22px;
  color: #172332;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 35, 50, 0.1);
}

.pilot-guest-label {
  display: block;
  width: fit-content;
  margin-top: 5px;
  padding: 4px 7px;
  color: #fff !important;
  background: var(--vicron-red);
  border-radius: 3px;
  font-size: 0.67rem !important;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.pilot-other-championships {
  margin: 0;
  padding: 15px 22px;
  color: #526170;
  background: rgba(227, 5, 24, 0.045);
  border-bottom: 1px solid rgba(23, 35, 50, 0.1);
  font-weight: 750;
}

.pilot-other-championships strong {
  color: #172332;
}

.pilot-championship-group + .pilot-championship-group {
  border-top: 3px solid #eef1f4;
}

.pilot-championship-group > h3 {
  margin: 0;
  padding: 14px 22px;
  color: #fff;
  background: #172332;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pilot-comparison-form {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) repeat(2, minmax(210px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(23, 35, 50, 0.12);
}

.pilot-comparison-form label,
.pilot-comparison-owner {
  display: grid;
  gap: 7px;
  color: #687684;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pilot-comparison-owner {
  min-height: 46px;
  align-content: center;
  padding: 8px 12px;
  border-left: 4px solid var(--vicron-red);
  background: #f4f6f8;
}

.pilot-comparison-owner strong {
  overflow-wrap: anywhere;
  color: #172332;
  font-size: 0.94rem;
}

.pilot-comparison-form select {
  width: 100%;
  min-height: 46px;
  padding: 9px 11px;
  color: #172332;
  background: #fff;
  border: 1px solid rgba(23, 35, 50, 0.25);
  border-radius: 4px;
  font: inherit;
  font-size: 0.92rem;
  text-transform: none;
}

.pilot-comparison-form button {
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  background: var(--vicron-red);
  border: 1px solid var(--vicron-red);
  border-radius: 4px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.pilot-comparison-table-wrap {
  margin: 0;
  padding: 18px 22px 24px;
}

.pilot-comparison-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}

.pilot-comparison-table th,
.pilot-comparison-table td {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 14px 12px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.pilot-comparison-table th:first-child,
.pilot-comparison-table td:first-child {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  text-align: center;
}

.pilot-comparison-table thead th:not(:first-child) {
  color: #d95312;
  font-size: 0.82rem;
  line-height: 1.25;
}

.pilot-comparison-table td strong,
.pilot-comparison-table td small {
  display: block;
}

.pilot-comparison-table td small {
  margin-top: 4px;
  color: #687684;
  font-size: 0.72rem;
}

.pilot-comparison-table td.is-comparison-best {
  background: rgba(5, 165, 82, 0.1);
  box-shadow: inset 4px 0 0 #05a552;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 980px) {
  .pilot-directory-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-search-field {
    grid-column: 1 / -1;
  }

  .pilot-directory-row {
    grid-template-columns: 90px minmax(210px, 1fr) 82px 72px 116px;
    gap: 10px;
    padding-inline: 16px;
  }

  .pilot-comparison-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pilot-home-access {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .pilot-home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-directory-filters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .pilot-search-field {
    grid-column: auto;
  }

  .pilot-directory-row {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: 86px;
    padding: 12px 14px;
  }

  .pilot-directory-count {
    display: none;
  }

  .pilot-directory-action {
    grid-column: 2;
    text-align: left;
  }

  .pilot-profile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-profile-summary > div:nth-child(2) {
    border-right: 0;
  }

  .pilot-profile-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(23, 35, 50, 0.1);
  }

  .pilot-activity-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

  .pilot-activity-row .pilot-directory-action {
    grid-column: auto;
  }

  .pilot-comparison-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .pilot-comparison-table-wrap {
    padding: 12px 10px 18px;
  }
}

/* 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;
}

/* Fechas que pertenecen a una nueva etapa del campeonato */
body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage {
  background: #172332;
  border-color: #d9ad3b;
  box-shadow: 0 20px 42px rgba(23, 35, 50, 0.25);
}

body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage:hover {
  background: #202f40;
  border-color: #f1cb65;
}

body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage::before {
  width: 8px;
  background: #d9ad3b;
}

body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage::after {
  right: 16px;
  bottom: -10px;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: rgba(241, 203, 101, 0.1);
  content: attr(data-stage-mark);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 1;
  transform: rotate(-6deg);
}

body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage strong,
body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage span:not(.listing-kicker):not(.listing-stage-badge) {
  color: #fff;
}

body:not(.admin-points-page):not(.live-page) .listing-card.listing-card--stage .listing-kicker {
  color: #f1cb65;
}

body:not(.admin-points-page):not(.live-page) .listing-stage-badge {
  justify-self: start;
  padding: 5px 0;
  color: #f1cb65;
  border-top: 1px solid rgba(241, 203, 101, 0.55);
  border-bottom: 1px solid rgba(241, 203, 101, 0.55);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

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;
  }
}

/* Mantener el panel administrativo claro frente a estilos historicos */
body.pilot-admin-page .admin-table-wrap {
  color: #172332;
  background: #fff;
  border-color: #d9e0e6;
}

body.pilot-admin-page .admin-table {
  color: #172332;
  background: #fff;
}

body.pilot-admin-page .admin-table th {
  color: #fff;
  background: #172332;
  border-bottom-color: #172332;
  font-size: 0.78rem;
}

body.pilot-admin-page .admin-table td {
  color: #172332;
  background: #fff;
  border-bottom-color: #e1e6eb;
}

body.pilot-admin-page .admin-table tbody tr:nth-child(even) td {
  background: #f4f6f8;
}

body.pilot-admin-page .admin-tabs a {
  color: #526170;
  background: #eef1f4;
  border-color: #d6dde4;
}

body.pilot-admin-page .admin-tabs a.is-active {
  color: #fff;
  background: #d10d1d;
  border-color: #d10d1d;
}

body.pilot-admin-page .admin-correction-card,
body.pilot-admin-page .visit-admin-note {
  color: #172332;
  background: #f6f8fa;
  border-color: #dce2e8;
}

/* Tablas de consultas: columnas estables y legibles */
body.pilot-admin-page .visit-table {
  width: 100%;
  table-layout: fixed;
}

body.pilot-admin-page .visit-table th,
body.pilot-admin-page .visit-table td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

body.pilot-admin-page .visit-table--summary {
  min-width: 1120px;
}

body.pilot-admin-page .visit-table--summary .visit-summary-col-pilot { width: 240px; }
body.pilot-admin-page .visit-table--summary .visit-summary-col-profile { width: 95px; }
body.pilot-admin-page .visit-table--summary .visit-summary-col-comparisons { width: 145px; }
body.pilot-admin-page .visit-table--summary .visit-summary-col-total { width: 90px; }
body.pilot-admin-page .visit-table--summary .visit-summary-col-visitors { width: 115px; }
body.pilot-admin-page .visit-table--summary .visit-summary-col-last { width: 190px; }
body.pilot-admin-page .visit-table--summary .visit-summary-col-championships { width: auto; }

body.pilot-admin-page .visit-table--summary td:nth-child(2),
body.pilot-admin-page .visit-table--summary td:nth-child(3),
body.pilot-admin-page .visit-table--summary td:nth-child(4),
body.pilot-admin-page .visit-table--summary td:nth-child(5) {
  text-align: center;
}

body.pilot-admin-page .visit-table--summary th:nth-child(2),
body.pilot-admin-page .visit-table--summary th:nth-child(3),
body.pilot-admin-page .visit-table--summary th:nth-child(4),
body.pilot-admin-page .visit-table--summary th:nth-child(5) {
  text-align: center;
}

body.pilot-admin-page .visit-table--summary .visit-detail {
  min-width: 0;
  max-width: none;
}

body.pilot-admin-page .visit-table--recent {
  min-width: 1240px;
}

@media (max-width: 720px) {
  body.pilot-admin-page .visit-table--summary {
    min-width: 1040px;
  }

  body.pilot-admin-page .visit-table--summary .visit-summary-col-pilot { width: 210px; }
  body.pilot-admin-page .visit-table--summary .visit-summary-col-last { width: 170px; }
}

body.pilot-admin-page .admin-correction-card span,
body.pilot-admin-page .admin-correction-card small,
body.pilot-admin-page .visit-admin-note {
  color: #647382;
}
/* Observaciones por tanda */
.result-observation-flash {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 5px solid #168a4b;
  background: #edf8f1;
  color: #126238;
  font-weight: 800;
}

.result-observation-flash--error {
  border-left-color: #d20b25;
  background: #fff0f2;
  color: #a0081d;
}

.observation-admin-panel {
  margin-bottom: 22px;
}

.observation-admin-heading p {
  margin: 8px 0 0;
  color: #657384;
}

.observation-admin-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(210px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 22px;
  border-top: 1px solid #d9dee5;
}

.observation-admin-filters label,
.observation-admin-row label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #172437;
  font-weight: 800;
}

.observation-admin-filters select,
.observation-admin-row textarea,
.observation-position-table__edit input {
  width: 100%;
  max-width: 100%;
  border: 1px solid #c7cfd8;
  background: #fff;
  color: #172437;
  font: inherit;
}

.observation-admin-filters select {
  min-height: 50px;
  padding: 0 14px;
}

.observation-admin-results {
  margin-bottom: 28px;
  border: 1px solid #d9dee5;
  background: #fff;
}

.observation-admin-results > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid #d9dee5;
}

.observation-admin-results > header span {
  color: #df5a16;
  font-weight: 900;
  text-transform: uppercase;
}

.observation-admin-results > header h2 {
  margin: 5px 0 0;
  color: #172437;
}

.observation-admin-results > header > strong {
  padding: 9px 12px;
  background: #172437;
  color: #fff;
  white-space: nowrap;
}

.observation-category {
  border-bottom: 1px solid #cbd3dc;
  background: #fff;
}

.observation-category > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 14px;
  align-items: center;
  min-height: 60px;
  padding: 12px 22px 12px 26px;
  border-left: 5px solid #df5a16;
  background: #172437;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.observation-category > summary::-webkit-details-marker {
  display: none;
}

.observation-category > summary span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 900;
}

.observation-category > summary small {
  color: #dbe3ec;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.observation-category > summary::after {
  content: "+";
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #718096;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.observation-category[open] > summary {
  background: #223249;
}

.observation-category[open] > summary::after {
  content: "-";
  border-color: #f28a50;
  color: #f7a36f;
}

.observation-category__content .observation-admin-row:last-child {
  border-bottom: 0;
}

.observation-admin-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.8fr) minmax(360px, 2fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid #d9dee5;
  scroll-margin-top: 20px;
}

.observation-admin-row.has-override {
  background: #f3faf6;
  box-shadow: inset 5px 0 0 #168a4b;
}

.observation-admin-observation-form {
  display: contents;
}

.observation-admin-row__title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.observation-admin-row__title strong {
  color: #172437;
  font-size: 18px;
}

.observation-admin-row__title small {
  overflow-wrap: anywhere;
  color: #6c7887;
}

.observation-admin-row__title span {
  width: fit-content;
  padding: 4px 7px;
  background: #dff3e8;
  color: #126238;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.observation-admin-row__title span.is-csv {
  background: #fff2e8;
  color: #a84412;
}

.observation-admin-row textarea {
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.4;
}

.observation-admin-row textarea:focus {
  outline: 3px solid rgba(223, 90, 22, 0.18);
  border-color: #df5a16;
}

.observation-position-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #d9dee5;
}

.observation-position-panel__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.observation-position-panel__heading strong {
  color: #172437;
  font-size: 17px;
}

.observation-position-panel__heading span {
  color: #6c7887;
  font-size: 13px;
  font-weight: 800;
}

.observation-position-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9dee5;
  background: #fff;
}

.observation-position-table {
  width: max-content;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: auto;
}

.observation-position-table th,
.observation-position-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e7ee;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  width: max-content;
}

.observation-position-table th {
  background: #172437;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.observation-position-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.observation-position-table .col-pos,
.observation-position-table .col-number,
.observation-position-table .col-laps,
.observation-position-table .col-best-lap {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.observation-position-table .col-pilot {
  min-width: 0;
  font-weight: 900;
}

.observation-position-table .is-current-position {
  background: #fff7ed;
  color: #a84412;
  font-weight: 900;
}

.observation-position-table__edit {
  width: 72px;
  white-space: nowrap;
}

.observation-position-table__edit input {
  min-height: 28px;
  padding: 0 5px;
  text-align: center;
  text-transform: uppercase;
}

.observation-position-table__edit input:focus {
  outline: 3px solid rgba(223, 90, 22, 0.18);
  border-color: #df5a16;
}

.observation-position-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 10px;
}

.position-save-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  border: 1px solid #172437;
  background: #172437;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  padding: 0 14px;
  text-transform: uppercase;
  cursor: pointer;
}

.position-save-button:hover {
  background: #df5a16;
  border-color: #df5a16;
}

.observation-admin-row__actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  min-width: 125px;
}

.observation-admin-row__actions small {
  color: #6c7887;
  text-align: center;
}

@media (max-width: 980px) {
  .observation-admin-row {
    grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.5fr);
  }

  .observation-admin-row__actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(130px, 220px) auto;
    align-items: center;
    justify-content: end;
  }
}

@media (max-width: 700px) {
  .observation-admin-filters,
  .observation-admin-row {
    grid-template-columns: 1fr;
  }

  .observation-admin-filters {
    padding: 18px;
  }

  .observation-admin-results > header,
  .observation-admin-row {
    padding: 17px 18px;
  }

  .observation-admin-results > header {
    align-items: flex-start;
  }

  .observation-position-panel__heading {
    display: grid;
    gap: 4px;
  }

  .observation-position-table {
    width: max-content;
    min-width: 720px;
  }

  .observation-position-table th,
  .observation-position-table td {
    padding: 6px 7px;
  }

  .observation-category > summary {
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 9px;
    padding: 11px 13px 11px 16px;
  }

  .observation-category > summary span {
    font-size: 16px;
  }

  .observation-category > summary small {
    font-size: 11px;
  }

  .observation-admin-row__actions {
    grid-column: auto;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

@media (max-width: 720px) {
  body:not(.admin-points-page) .page-shell {
    width: calc(100% - 14px);
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) tbody {
    gap: 7px;
    padding: 8px;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) tr {
    grid-template-columns: 30px 42px minmax(0, 1fr) 58px;
    gap: 2px 7px;
    min-height: 0;
    padding: 8px;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td {
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.05;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(1),
  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(2) {
    grid-row: span 2;
    min-height: 45px;
    font-size: 0.9rem;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(3) {
    grid-row: 1;
    grid-column: 3;
    overflow: hidden;
    padding-right: 3px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(4) {
    grid-row: 2;
    grid-column: 3;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(5) {
    grid-column: 4;
    grid-row: 1;
    align-self: center;
    font-size: 0.95rem;
    line-height: 1;
    white-space: nowrap;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(5)::before {
    display: block;
    font-size: 0.56rem;
    line-height: 1;
  }

  .results-panel .championship-table:not(.championship-table--detail):not(.admin-guest-points__table) td:nth-child(6) {
    grid-column: 4;
    grid-row: 2;
    align-self: center;
    font-size: 0.66rem;
    line-height: 1;
    white-space: nowrap;
  }

  .table-wrap--points-detail {
    overflow: visible;
    border: 0;
  }

  .table-wrap--points-detail .championship-table--detail {
    display: none;
  }

  .points-detail-mobile {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #eef2f6;
  }

  .points-mobile-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(23, 35, 50, 0.16);
  }

  .points-mobile-card__header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 52px;
    gap: 9px;
    align-items: stretch;
    min-height: 62px;
    padding: 8px;
    border-bottom: 1px solid rgba(23, 35, 50, 0.14);
  }

  .points-mobile-card__position {
    display: grid;
    place-items: center;
    color: #fff;
    background: #172332;
    font-size: 1rem;
    font-weight: 950;
  }

  .points-mobile-card__pilot {
    display: grid;
    gap: 3px;
    align-content: center;
    min-width: 0;
  }

  .points-mobile-card__pilot > span,
  .points-mobile-card__total > span {
    color: #d65f1f;
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .points-mobile-card__pilot strong {
    min-width: 0;
    color: #172332;
    font-size: 0.82rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .points-mobile-card__total {
    display: grid;
    align-content: center;
    justify-items: end;
  }

  .points-mobile-card__total > span {
    color: #667482;
  }

  .points-mobile-card__total strong {
    color: #d65f1f;
    font-size: 1.05rem;
    line-height: 1;
  }

  .points-mobile-card__dates {
    display: grid;
    gap: 7px;
    padding: 8px;
  }

  .points-mobile-date {
    border: 1px solid rgba(23, 35, 50, 0.13);
    background: #f7f9fb;
  }

  .points-mobile-date.is-winner {
    border: 2px solid #e0a400;
    background: #fff3bf;
  }

  .points-mobile-date h3 {
    margin: 0;
    padding: 6px 8px;
    color: #d65f1f;
    border-bottom: 1px solid rgba(23, 35, 50, 0.11);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .points-mobile-date.is-winner h3 {
    color: #875000;
    border-bottom-color: rgba(154, 87, 0, 0.2);
  }

  .points-mobile-date__values {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .points-mobile-date__values--opening {
    grid-template-columns: 1fr;
  }

  .points-mobile-date__values > span {
    display: grid;
    gap: 3px;
    place-items: center;
    min-height: 43px;
    padding: 5px 2px;
    border-right: 1px solid rgba(23, 35, 50, 0.1);
  }

  .points-mobile-date__values > span:last-child {
    border-right: 0;
  }

  .points-mobile-date__values small {
    color: #667482;
    font-size: 0.58rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .points-mobile-date__values strong {
    color: #172332;
    font-size: 0.82rem;
    line-height: 1;
  }

  .points-mobile-date__final strong {
    color: #9a5700;
  }

  .points-mobile-date__subtotal {
    background: rgba(214, 95, 31, 0.08);
  }

  .pilot-wins {
    gap: 2px;
    margin-left: 3px;
    font-size: 0.66rem;
    vertical-align: 1px;
  }

  .trophy {
    margin-right: 1px;
    font-size: 0.76rem;
  }

  .admin-guest-points {
    margin: 8px;
  }

  .admin-guest-points__heading,
  .admin-guest-points__date {
    padding: 10px;
  }

  .results-panel .admin-guest-points__table tbody {
    gap: 7px;
  }

  .results-panel .admin-guest-points__table tr {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 5px 8px;
    padding: 9px;
  }

  .results-panel .admin-guest-points__table td {
    font-size: 0.74rem;
    line-height: 1.08;
  }

  .results-panel .admin-guest-points__table td::before {
    font-size: 0.56rem;
  }

  .results-panel .admin-guest-points__table td:nth-child(1) {
    font-size: 0.86rem;
  }

  .results-panel .admin-guest-points__table td:nth-child(n+4) {
    padding-top: 5px;
  }
}

/* Prioridad final del rediseño global. */
body:not(.admin-points-page):not(.live-page) .event-hero,
body.live-page .event-hero {
  min-height: 168px !important;
  padding: 24px 30px !important;
}

body:not(.admin-points-page):not(.live-page) .event-hero--home {
  min-height: 190px !important;
}

body:not(.admin-points-page):not(.live-page) .event-hero h1,
body.live-page .event-hero h1 {
  max-width: 760px !important;
  font-size: clamp(2.2rem, 4vw, 4.2rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

body:not(.admin-points-page):not(.live-page) .hero-actions,
body.live-page .hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

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 {
  min-height: 40px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
}

body.admin-points-page .admin-hero {
  min-height: 156px !important;
  margin-bottom: 24px !important;
  padding: 24px 28px !important;
  border-radius: 8px !important;
  background: linear-gradient(120deg, #151719 0%, #25384b 72%, #c94f1b 100%) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 34, 0.16) !important;
}

body.admin-points-page .admin-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4rem) !important;
  line-height: 0.95 !important;
  letter-spacing: 0 !important;
}

body.admin-points-page .admin-hero .hero-actions {
  display: flex !important;
  flex: 0 1 auto !important;
  width: auto !important;
  max-width: 100%;
  grid-template-columns: none !important;
  gap: 8px !important;
}

body.admin-points-page .admin-hero .hero-actions > a,
body.admin-points-page .admin-hero .hero-actions > form,
body.admin-points-page .admin-hero .hero-actions > form > button,
body.admin-points-page .admin-hero .hero-actions .live-button {
  width: auto !important;
  min-height: 40px !important;
  padding: 9px 14px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  text-transform: none !important;
}

@media (max-width: 760px) {
  body:not(.admin-points-page):not(.live-page) .event-hero,
  body.live-page .event-hero,
  body.admin-points-page .admin-hero {
    min-height: 0 !important;
    padding: 20px !important;
  }

  body.admin-points-page .admin-hero .hero-actions {
    justify-content: flex-start;
  }
}

/* Ultimo ajuste mobile: botones publicos chicos en todas las paginas de resultados. */
body:not(.admin-points-page) .event-hero .hero-actions,
body.live-page .event-hero .hero-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: auto !important;
}

body:not(.admin-points-page) .event-hero .live-button,
body.live-page .event-hero .live-button {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body:not(.admin-points-page) .event-hero .hero-actions,
  body.live-page .event-hero .hero-actions {
    margin-top: 16px !important;
  }

  body:not(.admin-points-page) .event-hero .live-button,
  body.live-page .event-hero .live-button {
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
  }
}

/* Nombres completos y acceso discreto al vuelta a vuelta. */
html body .results-panel td.col-pilot:has(.pilot-laps-toggle) {
  white-space: normal !important;
  min-width: 180px;
  overflow: visible;
}
html body .results-panel .pilot-laps-toggle {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 8px;
  column-gap: 9px;
  row-gap: 1px;
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  text-align: left;
  align-items: center;
}
html body .results-panel .pilot-laps-toggle > span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
html body .results-panel .pilot-laps-toggle__name {
  grid-column: 1;
  grid-row: 1;
  line-height: 1.35;
  overflow-wrap: break-word;
}
html body .results-panel .pilot-laps-toggle__hint {
  grid-column: 1;
  grid-row: 2;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.3;
  color: #66717e;
}
html body .results-panel .pilot-laps-toggle i {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 6px;
  height: 6px;
  border-width: 1.5px;
  border-color: #8d5960;
}
html body .results-panel .pilot-laps-toggle:hover .pilot-laps-toggle__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body .results-panel .pilot-laps-toggle[aria-expanded="true"] .pilot-laps-toggle__hint {
  color: #a32232;
}

html body .results-panel .lap-compare-picker:not([hidden]) + .pilot-laps-toggle {
  width: calc(100% - 38px);
}
@media (max-width: 720px) {
  html body .results-panel .pilot-laps-toggle { column-gap: 6px; row-gap: 0; }
  html body .results-panel .pilot-laps-toggle__hint { font-size: 9px; line-height: 1.25; }
  html body .results-panel .pilot-laps-toggle i { width: 5px; height: 5px; border-width: 1px; }
}
