:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --text: #161a22;
  --muted: #667085;
  --line: #e3e7ed;
  --brand: #d9232e;
  --brand-dark: #aa1720;
  --blue: #0d6f9f;
  --green: #147d59;
  --amber: #9d5b08;
  --surface: #f7f8fa;
  --chip: #f0f2f5;
  --shadow: 0 20px 50px rgba(16, 24, 40, .12);
  --soft-shadow: 0 8px 24px rgba(16, 24, 40, .055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(227, 231, 237, .88);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 64px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ef3944, var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.brand-mark.has-image {
  border: 1px solid var(--line);
  background-color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent;
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a,
.btn,
.tab,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nav a {
  border-color: transparent;
  background: transparent;
  color: #475467;
  font-weight: 700;
}

.nav a.active {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.nav a:hover,
.btn:hover,
.chip:hover {
  border-color: rgba(215, 25, 32, .28);
  transform: translateY(-1px);
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(217, 35, 46, .20);
}

.btn.subtle {
  background: #f8fafc;
}

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 11, 17, .94), rgba(12, 18, 29, .72) 48%, rgba(12, 18, 29, .28)),
    var(--hero-image, var(--track-hero-image, url("/assets/rcfans-track-hero-v1.jpg"))) center/cover;
}

body[data-page="events"] .hero {
  --hero-image: var(--events-hero-image, url("/assets/rcfans-events-hero-v1.jpg"));
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 350px;
  padding: 54px 16px 70px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h2 {
  margin: 0;
  max-width: 740px;
  font-size: 44px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 660px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 26px;
}

.hero-stat {
  min-width: 130px;
  border-left: 1px solid rgba(255, 255, 255, .22);
  padding: 0 22px;
}

.hero-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero-stat strong {
  display: block;
  font-size: 24px;
}

.hero-stat span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 52px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: #475467;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--brand-dark);
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.footer-legal [data-app-version] {
  color: #c4c9cf;
  font-weight: 700;
}

.footer-separator {
  color: #555d66;
}

.footer-icp-group {
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.filter-panel,
.form-card,
.list-card,
.side-card,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.filter-panel {
  position: relative;
  z-index: 5;
  margin-top: -34px;
  padding: 18px;
  border-color: rgba(226, 232, 240, .92);
  box-shadow: var(--shadow);
}

.filter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-head strong {
  font-size: 16px;
}

.filter-head span {
  color: var(--muted);
  font-size: 12px;
}

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

body[data-page="tracks"] .filter-row .field:first-child {
  grid-column: span 2;
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-help {
  margin: -1px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.field input,
.field select {
  height: 42px;
  padding: 0 11px;
}

.month-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  height: 42px;
}

.month-control select {
  min-width: 0;
  width: 100%;
}

.field textarea {
  min-height: 88px;
  padding: 10px 11px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(15, 110, 168, .42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 110, 168, .12);
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  align-items: center;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.check-pill input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--brand);
}

.check-pill:has(input:checked) {
  border-color: rgba(215, 25, 32, .38);
  background: rgba(215, 25, 32, .08);
  color: var(--brand);
}

.schedule-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
}

.schedule-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(108px, 136px) 18px minmax(108px, 136px);
  align-items: center;
  gap: 8px;
}

.schedule-row > label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

.schedule-row > label input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}

.schedule-row > span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.schedule-row input[type="time"] {
  height: 38px;
  padding: 0 8px;
}

.schedule-row.disabled input[type="time"] {
  background: #f1f3f5;
  color: #9aa2ad;
}

.copy-setting-grid {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(0, 1.6fr);
  gap: 8px;
}

.quick-filters,
.actions,
.upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-filters {
  margin-top: 14px;
}

.chip {
  border-radius: 999px;
  min-height: 34px;
  background: var(--surface);
  padding: 7px 13px;
}

.chip.active,
.tab.active {
  border-color: rgba(215, 25, 32, .32);
  background: rgba(215, 25, 32, .08);
  color: var(--brand-dark);
  font-weight: 900;
}

.summary {
  margin: 20px 0 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.summary #resultCount {
  font-weight: 800;
  color: #334155;
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 0;
  border-bottom: 1px solid var(--line);
  padding: 0 4px 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 0 24px;
}

.trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-mark {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-size: 13px;
}

.trust-item div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.results-head {
  min-height: 72px;
  margin: 12px 0 8px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.results-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.results-actions #resultCount {
  color: #344054;
  font-weight: 800;
}

.text-button {
  min-height: 30px;
  border: 0;
  border-bottom: 1px solid #cfd5dd;
  background: transparent;
  color: var(--brand-dark);
  padding: 3px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover {
  border-color: var(--brand);
}

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

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

.track-card,
.event-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.track-card:hover,
.event-card:hover {
  border-color: rgba(15, 110, 168, .24);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .09);
  transform: translateY(-2px);
}

.track-card.is-featured,
.event-card.is-featured {
  border-color: rgba(217, 35, 46, .22);
  box-shadow: 0 12px 34px rgba(134, 25, 31, .08);
}

.cover {
  position: relative;
  min-height: 224px;
  border: 0;
  border-radius: 0;
  background: #d8dee6 center/cover no-repeat;
  overflow: hidden;
}

.cover-action {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.cover-action:focus-visible {
  outline: 3px solid rgba(13, 111, 159, .35);
  outline-offset: -3px;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 44%, rgba(15, 23, 42, .42));
  pointer-events: none;
}

.cover-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--brand-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .14);
}

.cover-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  background: rgba(17, 24, 39, .72);
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

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

.card-title h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-line span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.description {
  margin: 9px 0 0;
  color: #3f4a5a;
  line-height: 1.65;
  font-size: 14px;
  white-space: pre-line;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--chip);
  color: #475569;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.published,
.status-pill.open {
  background: #e8f8ef;
  color: var(--green);
}

.status-pill.onsite {
  background: #eef6ff;
  color: var(--blue);
}

.status-pill.not_started {
  background: #eef2f7;
  color: #526173;
}

.status-pill.full {
  background: #fff3e5;
  color: var(--amber);
}

.status-pill.none {
  background: #f1f5f9;
  color: #64748b;
}

.status-pill.featured {
  background: #fff7e8;
  color: var(--amber);
}

.status-pill.appointment {
  background: #eef6ff;
  color: var(--blue);
}

.status-pill.closed {
  background: #f1f5f9;
  color: #64748b;
}

.status-pill.closed-now {
  background: #f1f5f9;
  color: #475569;
}

.status-pill.unknown {
  background: #fff7e8;
  color: var(--amber);
}

.muted-tag {
  background: #f8fafc;
  color: #64748b;
}

.combined-tag {
  background: #fff3e5;
  color: #9a5a00;
}

.power-tag {
  background: #eef6ff;
  color: #17628f;
}

.meta-link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.assurance-line,
.modal-assurance {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #47705f;
  font-size: 12px;
  font-weight: 700;
}

.assurance-line {
  margin-top: 12px;
}

.assurance-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(20, 125, 89, .30);
}

.nav-btn {
  border-color: rgba(15, 110, 168, .22);
  background: #eef7fb;
  color: var(--blue);
}

.side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 80px;
}

.side-card {
  padding: 16px;
}

.side-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.side-card > .section-kicker {
  margin-bottom: 5px;
}

.partner-card {
  overflow: hidden;
  border-color: #282d33;
  background: #171a1e;
  color: #fff;
  padding: 0;
  box-shadow: 0 18px 40px rgba(15, 18, 23, .16);
}

.partner-card .partner-image {
  display: block;
  margin: 0;
  border-radius: 0;
  background-image: var(--partner-image, url("/assets/rcfans-partner-venue-v1.jpg"));
}

.partner-card .partner-image::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(180deg, transparent 54%, rgba(23, 26, 30, .56));
}

.partner-content {
  padding: 17px;
}

.partner-card .section-kicker {
  color: #ee9096;
}

.partner-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.partner-card .meta {
  margin: 0;
  color: rgba(255, 255, 255, .68);
}

.partner-benefits {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.partner-benefits li {
  position: relative;
  padding-left: 16px;
}

.partner-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.partner-cta {
  width: 100%;
  margin-top: 17px;
  border-color: rgba(255, 255, 255, .18);
  background: #fff;
  color: #171a1e;
  font-weight: 900;
}

.event-standard-card {
  border-left: 3px solid var(--brand);
  background: #fff;
}

.event-standard-card .partner-benefits {
  color: #344054;
}

.partner-image {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #d8dee6 center/cover no-repeat;
}

.partner-image.has-image {
  display: block;
}

.city-grid,
.calendar-grid {
  display: grid;
  gap: 8px;
}

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

.city-button,
.day-cell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.city-button:hover {
  border-color: rgba(15, 110, 168, .24);
  background: var(--surface);
  transform: translateY(-1px);
}

.city-button strong {
  display: block;
}

.city-button span {
  color: var(--muted);
  font-size: 12px;
}

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

.day-label,
.day-cell {
  min-height: 36px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.day-label {
  color: var(--muted);
  font-weight: 800;
}

.day-cell.has-event {
  border-color: rgba(215, 25, 32, .34);
  background: #fff1f1;
  color: var(--brand-dark);
  font-weight: 900;
}

.day-cell {
  width: 100%;
  min-width: 0;
  appearance: none;
  color: inherit;
  font: inherit;
  align-content: center;
  gap: 1px;
}

.day-cell:hover,
.day-cell:focus-visible {
  border-color: #98a2b3;
  background: var(--surface);
  outline: none;
}

.day-cell.is-selected,
.day-cell.is-selected:hover,
.day-cell.is-selected:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(215, 25, 32, .12);
}

.day-cell small {
  color: #9a3035;
  font-size: 8px;
  font-weight: 800;
}

.day-cell.is-selected small {
  color: #fff;
}

.empty {
  display: none;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 40px 18px;
  text-align: center;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(10, 15, 24, .66);
  backdrop-filter: blur(5px);
  padding: 18px;
  overflow: auto;
}

.modal-open {
  overflow: hidden;
}

.modal.open {
  display: block;
}

.modal-card {
  position: relative;
  max-width: 960px;
  margin: 26px auto;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(2, 8, 23, .28);
}

.modal-cover {
  height: 400px;
  background: #d8dee6 center/cover;
}

.modal-cover.clickable {
  cursor: zoom-in;
}

.modal-content {
  padding: 24px;
}

.modal-assurance {
  margin-top: 9px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.modal h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  cursor: pointer;
  font-size: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-item {
  min-height: 68px;
  border: 1px solid #e7edf3;
  border-radius: 8px;
  background: var(--surface);
  padding: 11px;
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-section {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 7px 2px 8px;
}

.detail-section h4 {
  margin: 0;
  font-size: 15px;
}

.detail-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 800;
}

.detail-value {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.event-classes-detail,
.event-classes-empty,
.related-event-list {
  grid-column: 1 / -1;
}

.event-classes-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-programs,
.event-text-section,
.event-competition {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

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

.event-program-summary,
.event-competition-section {
  min-width: 0;
  border: 1px solid #e0e5eb;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  overflow-wrap: anywhere;
}

.event-program-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.event-program-title h5,
.event-competition-section > h5 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.event-prose {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.program-jump {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.event-competition-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  scroll-margin-top: 110px;
}

.event-class-notes {
  margin-top: 10px;
  min-width: 0;
}

.event-class-notes b {
  color: var(--muted);
  font-size: 12px;
}

.event-class-notes .event-prose {
  margin-top: 4px;
  font-size: 13px;
}

.publication-tag { font-weight: 700; }
.competition-tag { color: #92501d; background: #fff1e7; }

@media (max-width: 640px), (max-width: 920px) and (max-height: 500px) {
  .event-program-list { grid-template-columns: minmax(0, 1fr); }
  .publication-mode-field { grid-column: 1 / -1; }
}

.event-class-detail {
  min-height: 58px;
  min-width: 0;
  overflow-wrap: anywhere;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #e7edf3;
  border-left: 3px solid var(--brand);
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
}

.event-class-detail strong {
  color: #263241;
  font-size: 13px;
}

.event-class-detail span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.event-classes-empty {
  border: 1px dashed #d7dee7;
  border-radius: 8px;
  background: #fafbfc;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.related-event-list {
  display: grid;
  gap: 8px;
}

.related-event {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: inherit;
  transition: border-color .18s ease, background .18s ease;
}

.related-event:hover {
  border-color: rgba(215, 25, 32, .28);
  background: #fffafa;
}

.related-event span {
  min-width: 0;
}

.related-event strong,
.related-event small {
  display: block;
}

.related-event strong {
  color: #263241;
  font-size: 13px;
}

.related-event small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.related-event b {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 11px;
}

body[data-page="events"] .filter-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.gallery-thumb,
.image-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc center/cover;
}

.gallery-thumb {
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  appearance: none;
}

.gallery-thumb:hover {
  border-color: rgba(215, 25, 32, .45);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

.viewer-open {
  overflow: hidden;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, .88);
  padding: 22px;
}

.image-viewer.open {
  display: flex;
}

.viewer-frame {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.viewer-frame img {
  display: block;
  max-width: min(1120px, 90vw);
  max-height: 82vh;
  border-radius: 8px;
  background: #020617;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

#viewerCount {
  min-width: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .9);
  padding: 6px 12px;
  text-align: center;
  font-size: 13px;
}

.viewer-close,
.viewer-nav {
  position: fixed;
  z-index: 91;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(15, 23, 42, .74);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.viewer-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 25px;
  line-height: 1;
}

.viewer-nav {
  top: 50%;
  width: 48px;
  height: 58px;
  border-radius: 8px;
  transform: translateY(-50%);
  font-size: 40px;
  line-height: 1;
}

.viewer-prev {
  left: 18px;
}

.viewer-next {
  right: 18px;
}

.image-viewer.single .viewer-nav {
  display: none;
}

.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 24, .62);
  padding: 20px;
  backdrop-filter: blur(5px);
}

.contact-sheet.open {
  display: flex;
}

.contact-sheet-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 8px;
  background: #fff;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  overflow: auto;
  box-shadow: 0 22px 64px rgba(2, 8, 23, .3);
}

.contact-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.contact-sheet-head h3 {
  margin: 2px 0 3px;
  font-size: 22px;
}

.contact-sheet-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.map-control {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.map-control[hidden],
.map-sheet [hidden] {
  display: none;
}

.card-actions .map-control > .btn {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  border-radius: 8px 0 0 8px;
  padding-right: 10px;
  padding-left: 10px;
  white-space: nowrap;
}

.map-options {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 1px solid #bdcfda;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--blue);
  background: #eef7fb;
  cursor: pointer;
}

.map-options:hover {
  background: #deedf5;
}

.map-options:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.map-options span {
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/assets/icons/chevron-right.svg") center / contain no-repeat;
  mask: url("/assets/icons/chevron-right.svg") center / contain no-repeat;
  transform: rotate(90deg);
}

.map-sheet-open {
  overflow: hidden;
}

.map-sheet {
  z-index: 90;
}

.map-sheet-panel {
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
}

.map-sheet .contact-sheet-head > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.map-sheet .contact-sheet-head h3 {
  font-size: 20px;
}

.map-sheet .contact-sheet-close {
  width: 44px;
  height: 44px;
}

.map-sheet label {
  display: block;
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.map-sheet textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #f7f9fa;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
}

.map-sheet-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.map-sheet-actions .btn {
  min-height: 44px;
  justify-content: center;
}

.map-copy-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .track-card .card-actions > .btn {
    min-height: 44px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }

  .card-actions .map-control {
    flex: 1 1 144px;
  }

  .map-sheet {
    align-items: flex-end;
    padding: 8px;
  }

  .map-sheet-panel {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
}

.contact-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 4px;
}

.contact-person span,
.contact-note span,
.contact-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-action-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-action {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label command" "detail command";
  align-items: center;
  gap: 3px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.contact-action:hover {
  border-color: rgba(215, 25, 32, .4);
  background: #fffafa;
}

.contact-action span {
  grid-area: label;
}

.contact-action small {
  grid-area: detail;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contact-action strong {
  grid-area: command;
  color: var(--brand-dark);
  font-size: 13px;
  white-space: nowrap;
}

.contact-note {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding: 15px 2px 0;
}

.contact-note p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.login-shell {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    linear-gradient(135deg, rgba(217, 35, 46, .06), transparent 36%),
    var(--bg);
}

.login-card {
  width: min(420px, 100%);
  padding: 26px;
}

.login-card h2,
.form-card h2,
.list-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.login-card .section-kicker {
  margin-bottom: 8px;
}

.login-intro {
  margin: -3px 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.login-form,
.admin-shell {
  display: grid;
  gap: 12px;
}

.login-error,
.form-error {
  display: none;
  border: 1px solid rgba(215, 25, 32, .25);
  border-radius: 8px;
  background: #fff1f1;
  color: var(--brand-dark);
  padding: 9px 10px;
  font-size: 13px;
}

.admin-app {
  display: none;
  padding-top: 26px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-head-copy h2 {
  margin: 0;
  font-size: 26px;
}

.admin-head-copy .meta {
  margin-top: 7px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tabs .tab {
  background: #fff;
  font-weight: 700;
}

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

.summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  box-shadow: var(--soft-shadow);
}

.summary-item::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: var(--brand);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workbench > * {
  min-width: 0;
}

.form-card-head,
.list-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.form-card-head h2,
.list-card-head h2 {
  margin-bottom: 0;
}

.draft-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.form-section {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  margin: 10px -18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #eef0f3;
  background: #fafbfc;
  padding: 11px 18px;
}

.form-grid > .form-section:first-child {
  margin-top: 0;
}

.form-section > span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.form-section h3,
.form-section p {
  margin: 0;
}

.form-section h3 {
  font-size: 14px;
}

.form-section p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.form-card,
.list-card {
  padding: 18px;
}

body[data-page="admin"] .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body[data-page="admin"] .workbench > .list-card {
  position: sticky;
  top: 82px;
}

.form-card > .actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 18px -18px -18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  padding: 14px 18px;
  backdrop-filter: blur(12px);
}

.wide {
  grid-column: 1 / -1;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

body[data-page="admin"] .table {
  min-width: 620px;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

.table th {
  background: #f8fafc;
  color: #475569;
}

.table tbody tr:hover td {
  background: #fafbfc;
}

.row-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.table-empty {
  height: 96px;
  color: var(--muted);
  text-align: center !important;
}

.admin-list-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  margin: 0 0 12px;
  border-top: 1px solid #eef0f3;
  border-bottom: 1px solid #eef0f3;
  background: #fafbfc;
  padding: 12px;
}

.image-preview {
  width: 100%;
  aspect-ratio: 16 / 8;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc center/cover;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.image-preview.has-image {
  border-style: solid;
  color: transparent;
}

.qr-image-preview {
  width: min(240px, 100%);
  aspect-ratio: 1 / 1;
  margin-top: 10px;
  background-size: contain;
  background-repeat: no-repeat;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.admin-image-thumb {
  position: relative;
  overflow: hidden;
}

.image-cover-label,
.image-index {
  position: absolute;
  left: 5px;
  top: 5px;
  min-width: 22px;
  min-height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
  color: #344054;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 900;
}

.image-cover-label {
  color: var(--brand-dark);
}

.image-controls {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 3px;
}

.image-controls button {
  min-width: 0;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 5px;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  font-size: 10px;
}

.image-controls button:hover:not(:disabled) {
  background: var(--brand-dark);
}

.image-controls button:disabled {
  opacity: .36;
  cursor: default;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(13, 111, 159, .22);
  outline-offset: 2px;
}

.btn:disabled,
.tab:disabled,
.chip:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

body[data-page="admin"] input[type="file"] {
  margin-top: 8px;
  border: 1px dashed #cbd2dc;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

body[data-page="admin"] .upload-row {
  margin-top: 8px;
}

.upload-hint {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 110;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid #bfe3d3;
  border-radius: 8px;
  background: #edf9f3;
  color: #116544;
  padding: 13px 15px 13px 13px;
  box-shadow: 0 16px 42px rgba(16, 24, 40, .18);
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.toast-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #16825b;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.toast-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.toast-copy strong {
  color: #0f5138;
  font-size: 14px;
  line-height: 1.35;
}

.toast-copy span {
  color: #39745e;
  font-size: 12px;
  line-height: 1.45;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.toast.error {
  border-color: #f1c3c6;
  background: #fff1f2;
  color: var(--brand-dark);
}

.toast.error .toast-icon {
  background: var(--brand);
}

.toast.error .toast-copy strong,
.toast.error .toast-copy span {
  color: var(--brand-dark);
}

@media (max-width: 920px) {
  .layout,
  .workbench {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }

  body[data-page="admin"] .workbench > .list-card {
    position: static;
    order: -1;
  }

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

  body[data-page="events"] .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="tracks"] .filter-row .field:first-child {
    grid-column: 1 / -1;
  }

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

  .trust-item {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .brand span,
  .nav .hide-mobile {
    display: none;
  }

  .topbar-inner {
    min-height: 58px;
    padding: 10px 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand h1 {
    font-size: 15px;
  }

  body[data-page="admin"] .brand h1 {
    white-space: nowrap;
  }

  .nav {
    gap: 2px;
  }

  .nav a,
  .nav .btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
  }

  .hero-inner {
    min-height: 310px;
    padding: 38px 12px 62px;
  }

  .hero h2 {
    font-size: 31px;
    line-height: 1.16;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .hero-stats {
    margin-top: 22px;
  }

  .hero-stat {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .wrap {
    padding: 0 12px 34px;
  }

  .site-footer-inner {
    min-height: 0;
    padding: 20px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .filter-panel {
    margin-top: -30px;
    padding: 14px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 18px;
    padding-bottom: 14px;
  }

  .trust-item,
  .trust-item:first-child {
    min-height: 54px;
    border-top: 1px solid #edf0f3;
    border-left: 0;
    padding: 10px 2px;
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .results-head {
    min-height: 66px;
    align-items: flex-start;
    margin-top: 8px;
  }

  .results-head h2 {
    font-size: 22px;
  }

  .results-actions {
    max-width: 50%;
    padding-top: 14px;
  }

  .filter-head {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .filter-row,
  .form-grid,
  .summary-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="events"] .filter-row,
  .event-classes-detail {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .form-grid {
    grid-template-columns: 1fr;
  }

  .copy-setting-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 68px minmax(0, 1fr) 14px minmax(0, 1fr);
  }

  body[data-page="admin"] .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-filters {
    flex-wrap: nowrap;
    margin-right: -14px;
    overflow-x: auto;
    padding: 0 14px 3px 0;
    scrollbar-width: none;
  }

  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .track-card,
  .event-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .card-body {
    padding: 16px;
  }

  .assurance-line {
    margin-top: 11px;
  }

  .card-title h3 {
    font-size: 20px;
  }

  .card-actions .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .modal {
    padding: 8px;
  }

  .modal-card {
    margin: 8px auto;
  }

  .modal-cover {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .modal-content {
    padding: 16px;
  }

  .modal h3 {
    font-size: 22px;
  }

  .close {
    top: 10px;
    right: 10px;
  }

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

  .image-viewer {
    padding: 12px;
  }

  .contact-sheet {
    align-items: flex-end;
    padding: 12px 0 0;
  }

  .contact-sheet-panel {
    max-height: calc(100vh - 12px);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    padding-right: 16px;
    padding-left: 16px;
    box-shadow: 0 -18px 54px rgba(2, 8, 23, .26);
  }

  .viewer-frame img {
    max-width: 94vw;
    max-height: 78vh;
  }

  .viewer-close {
    top: 12px;
    right: 12px;
  }

  .viewer-nav {
    top: auto;
    bottom: 18px;
    width: 46px;
    height: 46px;
    transform: none;
    font-size: 34px;
  }

  .viewer-prev {
    left: calc(50% - 58px);
  }

  .viewer-next {
    right: calc(50% - 58px);
  }

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

  .form-card-head,
  .list-card-head {
    align-items: flex-start;
  }

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

  .list-card-head .meta {
    display: none;
  }

  .form-section {
    margin-right: -18px;
    margin-left: -18px;
  }

  .admin-app {
    padding-top: 18px;
  }

  .tabs {
    width: 100%;
  }

  .tabs .tab {
    flex: 1;
  }

  .form-card > .actions {
    margin: 16px -18px -18px;
  }

  .toast {
    right: 12px;
    top: 12px;
  }
}

@media (max-width: 380px) {
  .brand h1 {
    font-size: 14px;
  }

  .nav a,
  .nav .btn {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 12px;
  }

  body[data-page="admin"] .nav a {
    display: none;
  }

  .hero h2 {
    font-size: 28px;
  }

  .hero-stat {
    padding: 0 8px;
  }

  .hero-stat span {
    font-size: 11px;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 11px 0 6px;
  }

  .results-actions {
    max-width: none;
    padding-top: 0;
  }

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

/* Admin workspace */
body[data-page="admin"] {
  --admin-nav: #151922;
  --admin-nav-soft: #202631;
  --admin-page: #f4f5f7;
  --admin-line: #e4e7ec;
  background: var(--admin-page);
}

body[data-page="admin"] .login-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 18%, rgba(217, 35, 46, .16), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(24, 91, 123, .13), transparent 34%),
    #141820;
}

body[data-page="admin"] .login-card {
  border: 0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .34);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
}

.admin-login-brand > span,
.admin-sidebar-brand > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(217, 35, 46, .28);
}

.admin-login-brand div,
.admin-sidebar-brand div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-login-brand strong {
  font-size: 16px;
}

.admin-version-badge {
  margin-left: auto;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #f7f8fa;
  color: #667085;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-login-brand small,
.admin-sidebar-brand small {
  margin-top: 3px;
  color: #8d96a5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.admin-workspace {
  min-height: 100vh;
  grid-template-columns: 232px minmax(0, 1fr);
  background: var(--admin-page);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 100vh;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--admin-nav);
  color: #d7dce4;
  padding: 18px 13px 16px;
}

.admin-sidebar-brand {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
}

.admin-sidebar-brand strong {
  color: #fff;
  font-size: 15px;
}

.admin-nav-label {
  margin: 25px 12px 9px;
  color: #687386;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.admin-nav.tabs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.admin-nav.tabs .tab {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ba5b4;
  padding: 9px 13px;
  text-align: left;
  box-shadow: none;
}

.admin-nav.tabs .tab:hover {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

.admin-nav.tabs .tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.admin-nav .tab b {
  font-size: 13px;
}

.admin-nav .tab small {
  font-size: 9px;
  font-weight: 600;
  opacity: .55;
}

.admin-sidebar-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 16px 10px 2px;
}

.admin-sidebar-foot span,
.admin-sidebar-foot small {
  display: block;
}

.admin-sidebar-foot span {
  color: #dce1e8;
  font-size: 11px;
  font-weight: 700;
}

.admin-sidebar-foot small {
  margin-top: 3px;
  color: #697487;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.admin-main {
  min-width: 0;
  height: 100vh;
  overflow: auto;
}

.admin-commandbar {
  position: sticky;
  top: 0;
  z-index: 28;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, .94);
  padding: 10px 26px;
  backdrop-filter: blur(16px);
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a93a1;
  font-size: 11px;
}

.admin-breadcrumb i {
  color: #c3c8d0;
  font-style: normal;
}

.admin-breadcrumb strong {
  color: #344054;
}

.admin-commandbar nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-commandbar nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  background: #fff;
  color: #475467;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
}

.admin-commandbar nav a:hover {
  border-color: #c9ced7;
  background: #fafbfc;
}

body[data-page="admin"] .admin-workspace .admin-app {
  display: block;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 27px 28px 54px;
}

body[data-page="admin"] .admin-head {
  align-items: flex-end;
  margin-bottom: 20px;
}

body[data-page="admin"] .admin-head-copy h2 {
  color: #1d2430;
  font-size: 25px;
}

.admin-head-note {
  color: #8b94a2;
  font-size: 10px;
}

body[data-page="admin"] .summary-grid {
  gap: 11px;
  margin-bottom: 17px;
}

body[data-page="admin"] .summary-item {
  position: relative;
  min-height: 102px;
  border-color: var(--admin-line);
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, .035);
  overflow: hidden;
}

body[data-page="admin"] .summary-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 3px;
  margin: 0;
  border-radius: 0;
}

body[data-page="admin"] .summary-item:nth-child(2)::before {
  background: #d68a15;
}

body[data-page="admin"] .summary-item:nth-child(3)::before {
  background: #176f9b;
}

body[data-page="admin"] .summary-item:nth-child(4)::before {
  background: #16815d;
}

body[data-page="admin"] .summary-item span {
  margin-top: 4px;
  font-size: 11px;
}

body[data-page="admin"] .summary-item strong {
  margin-top: 10px;
  font-size: 25px;
}

body[data-page="admin"] .workbench {
  grid-template-columns: minmax(610px, 1.3fr) minmax(430px, .9fr);
  gap: 16px;
}

.account-workbench {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr);
  align-items: start;
  gap: 16px;
}

.release-workbench {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
  gap: 16px;
}

body[data-page="admin"] .release-main {
  padding: 0;
  overflow: hidden;
}

.release-current {
  min-height: 164px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  background: #151922;
  color: #fff;
  padding: 24px;
}

.release-current .section-kicker {
  color: #ff7b26;
}

.release-current span,
.release-current strong {
  display: block;
}

.release-current > div > span {
  margin-top: 13px;
  color: #8f99a8;
  font-size: 11px;
}

.release-current > div > strong {
  margin-top: 4px;
  font-size: 34px;
  letter-spacing: 0;
}

.release-current dl {
  min-width: 220px;
  margin: 0;
}

.release-current dl > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 0;
}

.release-current dt {
  color: #778292;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.release-current dd {
  margin: 0;
  color: #d7dce4;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.release-history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #eceef2;
  padding: 22px 24px 17px;
}

.release-history-head h2,
.release-rules h2 {
  margin: 4px 0 0;
  color: #242b38;
  font-size: 18px;
}

.release-history-head > span {
  color: #929aa7;
  font-size: 9px;
}

.release-history {
  padding: 0 24px 8px;
}

.release-entry {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  padding: 22px 0;
}

.release-entry + .release-entry {
  border-top: 1px solid #eceef2;
}

.release-marker {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 2px solid #b7bec8;
  border-radius: 50%;
  background: #fff;
}

.release-entry.is-current .release-marker {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(217, 35, 46, .1);
}

.release-entry-body header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.release-entry-body header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-entry-body header strong {
  color: #293241;
  font-size: 15px;
}

.release-entry-body header span {
  border-radius: 4px;
  background: #fff0f1;
  color: var(--brand);
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 800;
}

.release-entry-body time,
.release-build {
  color: #8b94a2;
  font-size: 9px;
}

.release-build {
  margin: 5px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.release-entry-body ul {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.release-entry-body li {
  position: relative;
  margin-top: 7px;
  padding-left: 13px;
  color: #616c7c;
  font-size: 11px;
  line-height: 1.65;
}

.release-entry-body li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b5bdc8;
  content: "";
}

.release-empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 32px 0;
  color: #8b94a2;
  font-size: 10px;
}

.release-rules {
  position: sticky;
  top: 84px;
}

.release-rule-list {
  margin: 17px 0 0;
}

.release-rule-list > div {
  border-top: 1px solid #eceef2;
  padding: 12px 0;
}

.release-rule-list dt {
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.release-rule-list dd {
  margin: 4px 0 0;
  color: #7b8492;
  font-size: 10px;
  line-height: 1.6;
}

.release-note {
  margin: 7px 0 0;
  border-left: 3px solid var(--brand);
  background: #f8f9fa;
  color: #687384;
  padding: 11px 12px;
  font-size: 10px;
  line-height: 1.65;
}

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

.account-form-card > .actions {
  position: static;
}

.account-password-tools {
  min-height: 32px;
}

body[data-page="admin"] .account-password-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #667085;
  cursor: pointer;
}

body[data-page="admin"] .account-password-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--brand);
}

.account-facts {
  margin: 8px 0 0;
}

.account-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #eceef2;
  padding: 14px 2px;
}

.account-facts dt {
  color: #7b8492;
  font-size: 11px;
}

.account-facts dd {
  margin: 0;
  color: #293241;
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

.security-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.security-indicator::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d68a15;
  content: "";
}

.security-indicator.secure::before {
  background: #16815d;
}

.security-indicator.warning::before {
  background: #d9232e;
}

.account-security-note {
  margin-top: 8px;
  border: 1px solid #e7e9ed;
  border-radius: 8px;
  background: #f8f9fa;
  padding: 14px;
}

.account-security-note strong {
  color: #344054;
  font-size: 11px;
}

.account-security-note p {
  margin: 6px 0 0;
  color: #7b8492;
  font-size: 10px;
  line-height: 1.7;
}

@media (min-width: 1281px) {
  body[data-page="admin"] #eventsPanel .workbench {
    grid-template-columns: repeat(2, minmax(560px, 1fr));
  }

  body[data-page="admin"] #eventsPanel .table {
    min-width: 520px;
  }

  body[data-page="admin"] #eventsPanel .table th,
  body[data-page="admin"] #eventsPanel .table td {
    padding-right: 6px;
    padding-left: 6px;
  }
}

body[data-page="admin"] .form-card,
body[data-page="admin"] .list-card {
  border-color: var(--admin-line);
  border-radius: 10px;
  box-shadow: 0 7px 24px rgba(15, 23, 42, .045);
}

body[data-page="admin"] .form-card {
  padding: 20px;
}

body[data-page="admin"] .list-card {
  padding: 17px;
}

body[data-page="admin"] .form-card-head,
body[data-page="admin"] .list-card-head {
  min-height: 52px;
  align-items: flex-start;
}

body[data-page="admin"] .form-card-head h2,
body[data-page="admin"] .list-card-head h2 {
  color: #242b38;
  font-size: 18px;
}

body[data-page="admin"] .draft-note {
  max-width: 230px;
  border-radius: 6px;
  background: #f4f5f7;
  padding: 6px 8px;
  color: #7a8492;
}

body[data-page="admin"] .form-section {
  min-height: 58px;
  margin: 14px -20px 2px;
  border-color: #eaecf0;
  background: #f8f9fa;
  padding: 12px 20px;
}

body[data-page="admin"] .form-section > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #fff0f1;
  font-size: 10px;
}

body[data-page="admin"] .form-section h3 {
  font-size: 13px;
}

body[data-page="admin"] .form-section p {
  font-size: 10px;
}

body[data-page="admin"] .field label {
  color: #475467;
  font-size: 11px;
}

body[data-page="admin"] .field-help {
  color: #8a93a1;
  font-size: 10px;
}

body[data-page="admin"] .field input,
body[data-page="admin"] .field select,
body[data-page="admin"] .field textarea {
  border-color: #dfe3e9;
  background: #fff;
  font-size: 12px;
}

body[data-page="admin"] .field input,
body[data-page="admin"] .field select {
  height: 40px;
}

body[data-page="admin"] .field textarea {
  min-height: 94px;
}

body[data-page="admin"] .field input:focus,
body[data-page="admin"] .field select:focus,
body[data-page="admin"] .field textarea:focus {
  border-color: rgba(217, 35, 46, .5);
  box-shadow: 0 0 0 3px rgba(217, 35, 46, .09);
}

body[data-page="admin"] .check-grid {
  gap: 6px;
}

body[data-page="admin"] .check-pill {
  min-height: 32px;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 11px;
}

body[data-page="admin"] .btn.compact {
  min-height: 31px;
  padding: 5px 10px;
  font-size: 11px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row > label {
  margin: 0;
}

.event-class-list {
  display: grid;
  gap: 8px;
}

.event-class-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.55fr) minmax(118px, .65fr) minmax(105px, .55fr) 32px;
  align-items: end;
  gap: 8px;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px;
}

.event-class-row > div {
  min-width: 0;
}

.event-class-row label {
  display: block;
  margin-bottom: 5px;
  color: #7b8492;
  font-size: 9px;
  font-weight: 700;
}

.event-class-row input,
.event-class-row select {
  width: 100%;
  height: 36px;
  border: 1px solid #dfe3e9;
  border-radius: 7px;
  background: #fff;
  padding: 0 9px;
  outline: none;
  font-size: 11px;
}

.event-class-remove {
  width: 32px;
  height: 36px;
  border: 1px solid #e2e6ec;
  border-radius: 7px;
  background: #fff;
  color: #8c95a2;
  cursor: pointer;
  font-size: 18px;
}

.event-class-remove:hover {
  border-color: #efc8cb;
  background: #fff1f2;
  color: var(--brand);
}

.event-class-empty {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #d5dae2;
  border-radius: 8px;
  background: #fafbfc;
  color: #778191;
  text-align: center;
}

.event-class-empty strong {
  font-size: 11px;
}

.event-class-empty span {
  margin-top: 4px;
  color: #969eaa;
  font-size: 9px;
}

body[data-page="admin"] .editor-savebar {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 20px -20px -20px;
  padding: 13px 20px;
}

.editor-savebar > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.editor-savebar > div strong {
  color: #344054;
  font-size: 11px;
}

.editor-savebar > div span {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 9px;
}

body[data-page="admin"] .admin-list-filters {
  margin: 0 -17px 10px;
  border-color: #eceef2;
  background: #fafbfc;
  padding: 11px 17px;
}

body[data-page="admin"] .table {
  min-width: 720px;
}

body[data-page="admin"] .table th {
  background: #fafbfc;
  color: #808a98;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[data-page="admin"] .table td {
  color: #566173;
  font-size: 11px;
}

body[data-page="admin"] .table td > strong {
  color: #293241;
  font-size: 11px;
}

body[data-page="admin"] .table td:last-child {
  white-space: nowrap;
}

body[data-page="admin"] .table td .btn {
  min-height: 31px;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
}

body[data-page="admin"] .row-meta {
  font-size: 9px;
}

body[data-page="admin"] .status-pill {
  font-size: 9px;
}

@media (max-width: 1280px) {
  body[data-page="admin"] .workbench {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .workbench > .list-card {
    position: static;
    order: -1;
  }

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

  .account-security-card {
    order: -1;
  }
}

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

  .release-rules {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .admin-workspace {
    display: block !important;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 10px 12px 12px;
  }

  .admin-sidebar-brand {
    min-height: 48px;
  }

  .admin-nav-label,
  .admin-sidebar-foot,
  .admin-sidebar-brand small {
    display: none;
  }

  .admin-nav.tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 8px;
  }

  .admin-nav.tabs .tab {
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    text-align: center;
  }

  .admin-nav .tab small {
    display: none;
  }

  .admin-main {
    height: auto;
    overflow: visible;
  }

  .admin-commandbar {
    top: 0;
    padding: 9px 16px;
  }

  body[data-page="admin"] .admin-workspace .admin-app {
    padding: 22px 17px 44px;
  }
}

@media (max-width: 640px) {
  .admin-nav.tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .release-current {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .release-current dl {
    width: 100%;
    min-width: 0;
  }

  .release-current > div > strong {
    font-size: 29px;
  }

  .release-history-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 19px 18px 15px;
  }

  .release-history {
    padding-right: 18px;
    padding-left: 18px;
  }

  .release-entry-body header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .admin-commandbar nav a {
    display: none;
  }

  .admin-commandbar {
    min-height: 56px;
  }

  .admin-head-note {
    display: none;
  }

  body[data-page="admin"] .admin-head {
    align-items: flex-start;
  }

  body[data-page="admin"] .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="admin"] .form-card,
  body[data-page="admin"] .list-card {
    padding: 15px;
  }

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

  body[data-page="admin"] .form-section {
    margin-right: -15px;
    margin-left: -15px;
    padding-right: 15px;
    padding-left: 15px;
  }

  body[data-page="admin"] .event-class-row {
    grid-template-columns: 1fr 1fr 32px;
  }

  .event-class-name {
    grid-column: 1 / -1;
  }

  .event-class-remove {
    grid-column: 3;
  }

  body[data-page="admin"] .editor-savebar {
    margin-right: -15px;
    margin-left: -15px;
    padding-right: 15px;
    padding-left: 15px;
  }

  .editor-savebar > div {
    display: none;
  }

  .editor-savebar .btn {
    flex: 1;
  }
}

@media (max-width: 420px) {
  .admin-login-brand {
    margin-bottom: 24px;
  }

  body[data-page="admin"] .login-card {
    padding: 24px 20px;
  }

  .admin-breadcrumb > span,
  .admin-breadcrumb i {
    display: none;
  }

  .admin-nav.tabs .tab {
    font-size: 11px;
  }
}

/* RCFans public product UI baseline */
:root {
  --bg: #f2f3f5;
  --text: #15181c;
  --muted: #68717d;
  --line: #e0e3e7;
  --brand: #ff6500;
  --brand-dark: #c94f00;
  --surface: #f7f8f9;
  --chip: #f0f2f4;
  --shadow: 0 24px 64px rgba(12, 15, 18, .14);
  --soft-shadow: 0 10px 30px rgba(12, 15, 18, .065);
}

body[data-page="tracks"],
body[data-page="events"] {
  background: #f2f3f5;
}

body[data-page="tracks"] .topbar,
body[data-page="events"] .topbar {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: rgba(11, 13, 15, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
}

body[data-page="tracks"] .topbar-inner,
body[data-page="events"] .topbar-inner {
  min-height: 72px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background-color: #08090a;
  background-image: var(--brand-avatar-image, url("/assets/rcfans-brand-avatar-v2.webp"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.brand-mark.has-image {
  border-color: rgba(255, 255, 255, .18);
  background-color: #08090a;
}

.brand-title {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

body[data-page="tracks"] .brand span,
body[data-page="events"] .brand span {
  color: #8f969e;
}

body[data-page="tracks"] .nav a,
body[data-page="events"] .nav a {
  color: #aeb4bc;
}

body[data-page="tracks"] .nav a:hover,
body[data-page="events"] .nav a:hover {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

body[data-page="tracks"] .nav a.active,
body[data-page="events"] .nav a.active {
  border-color: rgba(255, 101, 0, .7);
  background: var(--brand);
  color: #101214;
  box-shadow: 0 8px 20px rgba(255, 101, 0, .2);
}

body[data-page="tracks"] .hero,
body[data-page="events"] .hero {
  border-bottom: 1px solid #111418;
  background-position: center;
}

body[data-page="tracks"] .hero {
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .96), rgba(7, 10, 13, .73) 52%, rgba(7, 10, 13, .2)),
    var(--hero-image, var(--track-hero-image, url("/assets/rcfans-track-hero-v1.jpg"))) center/cover;
}

body[data-page="events"] .hero {
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .96), rgba(7, 10, 13, .72) 52%, rgba(7, 10, 13, .2)),
    var(--hero-image, var(--events-hero-image, url("/assets/rcfans-events-hero-v1.jpg"))) center/cover;
}

body[data-page="tracks"] .hero-inner,
body[data-page="events"] .hero-inner {
  min-height: 410px;
  padding-top: 46px;
  padding-bottom: 88px;
}

.hero-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.hero-product img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 9px;
  object-fit: cover;
}

.hero-product span,
.hero-product strong,
.hero-product small {
  display: block;
}

.hero-product strong {
  color: #fff;
  font-size: 13px;
}

.hero-product small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
}

body[data-page="tracks"] .eyebrow,
body[data-page="events"] .eyebrow {
  color: #ff8b43;
  font-size: 11px;
  letter-spacing: .1em;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: 46px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hero-stats {
  margin-top: 30px;
}

.hero-stat strong {
  color: #fff;
  font-size: 28px;
}

.hero-stat span {
  color: rgba(255, 255, 255, .61);
}

body[data-page="tracks"] .filter-panel,
body[data-page="events"] .filter-panel {
  margin-top: -46px;
  border: 0;
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  padding: 21px 22px 20px;
  box-shadow: 0 26px 64px rgba(12, 15, 18, .15);
}

.filter-head {
  margin-bottom: 16px;
}

.filter-head strong {
  color: #1b2026;
  font-size: 17px;
}

.field label {
  color: #616b77;
}

body[data-page="tracks"] .filter-panel .field input,
body[data-page="tracks"] .filter-panel .field select,
body[data-page="events"] .filter-panel .field input,
body[data-page="events"] .filter-panel .field select {
  height: 44px;
  border-color: #dfe3e7;
  background: #fff;
}

body[data-page="events"] .filter-panel .month-control {
  height: 44px;
}

body[data-page="tracks"] .filter-panel .field input:focus,
body[data-page="tracks"] .filter-panel .field select:focus,
body[data-page="events"] .filter-panel .field input:focus,
body[data-page="events"] .filter-panel .field select:focus {
  border-color: rgba(255, 101, 0, .58);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, .11);
}

.chip {
  border-radius: 7px;
  background: #f5f6f7;
}

.chip.active,
.tab.active {
  border-color: rgba(255, 101, 0, .46);
  background: #fff1e8;
  color: #a74100;
}

.trust-strip {
  margin-top: 28px;
  padding-bottom: 25px;
}

.trust-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #171a1e;
  color: var(--brand);
}

.results-head {
  min-height: 82px;
  margin-top: 16px;
}

.section-kicker {
  color: var(--brand-dark);
  letter-spacing: .08em;
}

.results-head h2 {
  color: #171b20;
  font-size: 27px;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 22px;
}

.card-list {
  gap: 17px;
}

.track-card,
.event-card {
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 258px;
  border: 1px solid #dde1e5;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(12, 15, 18, .06);
}

.track-card:hover,
.event-card:hover {
  border-color: rgba(255, 101, 0, .34);
  box-shadow: 0 18px 42px rgba(12, 15, 18, .11);
}

.track-card.is-featured,
.event-card.is-featured {
  border-color: rgba(255, 101, 0, .42);
  box-shadow: 0 14px 38px rgba(136, 56, 4, .11);
}

.cover {
  min-height: 258px;
  background-color: #171a1e;
}

.cover::after {
  background: linear-gradient(180deg, rgba(8, 10, 12, .02) 38%, rgba(8, 10, 12, .68));
}

.cover-badge {
  left: 13px;
  top: 13px;
  min-height: 28px;
  border: 1px solid rgba(255, 101, 0, .42);
  border-radius: 6px;
  background: rgba(13, 15, 17, .88);
  color: #ff873b;
  box-shadow: none;
}

.cover-location {
  position: absolute;
  left: 13px;
  bottom: 13px;
  z-index: 2;
  max-width: calc(100% - 88px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.cover-location::before {
  margin-right: 5px;
  color: var(--brand);
  content: "●";
  font-size: 8px;
}

.cover-count {
  right: 13px;
  bottom: 13px;
  border-radius: 6px;
  background: rgba(12, 14, 16, .78);
}

.event-date-badge {
  position: absolute;
  left: 13px;
  bottom: 13px;
  z-index: 2;
  width: 54px;
  height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: var(--brand);
  color: #111315;
  box-shadow: 0 9px 22px rgba(0, 0, 0, .2);
}

.event-date-badge strong,
.event-date-badge small {
  display: block;
  line-height: 1;
}

.event-date-badge strong {
  font-size: 21px;
}

.event-date-badge small {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
}

.event-card .cover-count {
  bottom: 13px;
}

.card-body {
  padding: 22px 22px 18px;
}

.card-title h3 {
  color: #171b20;
  font-size: 23px;
  line-height: 1.3;
}

.meta-line {
  margin-top: 11px;
  color: #6f7884;
}

.description {
  color: #424b57;
}

.tag,
.status-pill {
  border-radius: 6px;
}

.status-pill.open,
.status-pill.published {
  background: #e6f6ec;
}

.assurance-line,
.modal-assurance {
  gap: 8px;
  color: #59636f;
  font-size: 11px;
}

.source-avatar {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  background: #0a0b0d;
  object-fit: cover;
}

.assurance-dot {
  display: none;
}

.btn.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #111315;
  box-shadow: 0 9px 22px rgba(255, 101, 0, .2);
  font-weight: 900;
}

.btn.primary:hover {
  border-color: #e55a00;
  background: #f45f00;
}

.card-actions .btn.primary::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
}

.nav-btn::before,
#modalNav::before {
  content: "↗";
  font-size: 14px;
  line-height: 1;
}

.side-card {
  border-color: #dde1e5;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(12, 15, 18, .055);
}

.city-button,
.day-cell {
  border-radius: 6px;
}

.city-button:hover {
  border-color: rgba(255, 101, 0, .35);
  background: #fff7f2;
}

.partner-card {
  border-color: #181b1f;
  background: #121416;
  box-shadow: 0 18px 44px rgba(12, 15, 18, .2);
}

.partner-card .section-kicker {
  color: #ff8b43;
}

.partner-benefits li::before {
  border-radius: 2px;
  background: var(--brand);
}

.event-standard-card {
  border-left-color: var(--brand);
}

.day-cell.has-event {
  border-color: rgba(255, 101, 0, .4);
  background: #fff0e6;
  color: #a74100;
}

.day-cell.is-selected,
.day-cell.is-selected:hover,
.day-cell.is-selected:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: #111315;
  box-shadow: 0 0 0 3px rgba(255, 101, 0, .13);
}

.day-cell.is-selected small {
  color: #111315;
}

.site-footer {
  border-top: 0;
  background: #0c0e10;
  color: #fff;
}

.site-footer-inner {
  min-height: 104px;
  color: #8f969e;
}

.footer-brand,
.footer-meta {
  display: flex;
  align-items: center;
}

.footer-brand {
  gap: 11px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9px;
}

.footer-brand span,
.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  color: #fff;
  font-size: 14px;
}

.footer-brand small {
  margin-top: 3px;
  color: #747c85;
  font-size: 10px;
}

.footer-meta {
  align-items: flex-end;
  flex-direction: column;
  gap: 9px;
}

.site-footer nav {
  gap: 20px;
}

.site-footer a {
  color: #c4c9cf;
}

.site-footer a:hover {
  color: var(--brand);
}

.modal-card {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.modal-cover {
  height: 430px;
}

.modal-content {
  padding: 27px;
}

.modal h3 {
  color: #171b20;
  font-size: 29px;
}

.detail-item {
  border-color: #e1e5e9;
  background: #f8f9fa;
}

.detail-section {
  border-bottom: 1px solid #e4e7ea;
}

.gallery-thumb:hover {
  border-color: rgba(255, 101, 0, .52);
}

.contact-sheet-panel {
  border-top: 4px solid var(--brand);
}

.admin-login-brand > span,
.admin-sidebar-brand > span {
  border: 1px solid rgba(255, 255, 255, .14);
  background-color: #08090a;
  background-image: var(--brand-avatar-image, url("/assets/rcfans-brand-avatar-v2.webp"));
  background-position: center;
  background-size: cover;
  color: transparent;
  box-shadow: 0 8px 22px rgba(255, 101, 0, .18);
}

.admin-nav.tabs .tab.active {
  background: var(--brand);
  color: #121416;
}

body[data-page="admin"] .form-section > span {
  background: #fff0e7;
  color: #ae4400;
}

body[data-page="admin"] .field input:focus,
body[data-page="admin"] .field select:focus,
body[data-page="admin"] .field textarea:focus {
  border-color: rgba(255, 101, 0, .52);
  box-shadow: 0 0 0 3px rgba(255, 101, 0, .1);
}

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

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

@media (max-width: 640px) {
  body[data-page="tracks"] .topbar-inner,
  body[data-page="events"] .topbar-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }

  .brand-title {
    max-width: 150px;
    overflow: hidden;
    font-size: 13px;
    white-space: nowrap;
  }

  body[data-page="tracks"] .hero-inner,
  body[data-page="events"] .hero-inner {
    min-height: 366px;
    padding-top: 31px;
    padding-bottom: 72px;
  }

  .hero-product {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .hero p {
    max-width: 95%;
  }

  .hero-stat strong {
    font-size: 23px;
  }

  body[data-page="tracks"] .filter-panel,
  body[data-page="events"] .filter-panel {
    margin-top: -38px;
    padding: 16px 14px;
  }

  .filter-row,
  body[data-page="events"] .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="tracks"] .filter-row .field:first-child,
  body[data-page="events"] .filter-row .field:first-child {
    grid-column: 1 / -1;
  }

  .trust-mark {
    width: 26px;
    height: 26px;
  }

  .results-head {
    min-height: 72px;
  }

  .results-head h2 {
    font-size: 23px;
  }

  .track-card,
  .event-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .cover {
    min-height: 0;
  }

  .card-body {
    padding: 18px 16px 16px;
  }

  .card-title h3 {
    font-size: 21px;
  }

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

  .modal-cover {
    height: auto;
  }

  .modal-content {
    padding: 18px 16px;
  }

  .modal h3 {
    font-size: 23px;
  }

  .site-footer-inner {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .footer-separator {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-stat span {
    font-size: 10px;
  }
}

@media (max-width: 340px) {
  .filter-row,
  body[data-page="events"] .filter-row {
    grid-template-columns: 1fr;
  }
}

/* Compact information rail shared by the track and event directories. */
body[data-page="tracks"] .trust-strip,
body[data-page="events"] .trust-strip {
  gap: 28px;
  margin: 22px 0 6px;
  border: 0;
  padding: 0;
}

body[data-page="tracks"] .trust-item,
body[data-page="events"] .trust-item,
body[data-page="tracks"] .trust-item:first-child,
body[data-page="events"] .trust-item:first-child {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 0;
  border-top: 1px solid #d8dde3;
  border-left: 0;
  padding: 14px 0 0;
}

body[data-page="tracks"] .trust-item::before,
body[data-page="events"] .trust-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--brand);
}

body[data-page="tracks"] .trust-mark,
body[data-page="events"] .trust-mark {
  width: auto;
  height: auto;
  display: block;
  padding-top: 2px;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 10px;
  line-height: 1.2;
}

body[data-page="tracks"] .trust-item strong,
body[data-page="events"] .trust-item strong {
  color: #171a1e;
  font-size: 13px;
  line-height: 1.3;
}

body[data-page="tracks"] .trust-item div > span,
body[data-page="events"] .trust-item div > span {
  margin-top: 4px;
  color: #707985;
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  body[data-page="tracks"] .trust-strip,
  body[data-page="events"] .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 17px 0 6px;
    padding: 0;
  }

  body[data-page="tracks"] .trust-item,
  body[data-page="events"] .trust-item,
  body[data-page="tracks"] .trust-item:first-child,
  body[data-page="events"] .trust-item:first-child {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 5px;
    min-height: 43px;
    border-top: 1px solid #d8dde3;
    padding: 10px 0 0;
  }

  body[data-page="tracks"] .trust-item::before,
  body[data-page="events"] .trust-item::before {
    width: 30px;
  }

  body[data-page="tracks"] .trust-item div > span,
  body[data-page="events"] .trust-item div > span {
    display: none;
  }

  body[data-page="tracks"] .trust-item strong,
  body[data-page="events"] .trust-item strong {
    font-size: 12px;
  }
}

/* Public detail pages: clear information hierarchy and persistent actions. */
.modal-card:focus,
.contact-sheet-panel:focus {
  outline: none;
}

.modal.open {
  overflow: hidden;
}

.modal-card {
  max-height: calc(100vh - 88px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.modal.open .close {
  position: fixed;
  z-index: 6;
  top: 60px;
  right: max(18px, calc((100vw - 960px) / 2 + 16px));
}

.modal-actions {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 18px -27px 17px;
  border-top: 1px solid #e1e5e9;
  border-bottom: 1px solid #e1e5e9;
  background: rgba(255, 255, 255, .96);
  padding: 11px 76px 11px 27px;
  box-shadow: 0 9px 24px rgba(12, 15, 18, .07);
  backdrop-filter: blur(14px);
}

.modal-actions[hidden] {
  display: none;
}

.modal-actions .btn {
  min-height: 40px;
}

.modal-actions #modalNav::after {
  content: none;
}

.modal .close:focus-visible,
.contact-sheet-close:focus-visible,
.viewer-close:focus-visible {
  outline: 2px solid rgba(255, 101, 0, .62);
  outline-offset: 2px;
}

.detail-grid {
  gap: 0 28px;
  margin-top: 22px;
}

.detail-section {
  margin-top: 25px;
  border-bottom: 2px solid #202327;
  padding: 0 0 9px;
}

.detail-grid > .detail-section:first-child {
  margin-top: 0;
}

.detail-section h4 {
  color: #171a1e;
  font-size: 16px;
  line-height: 1.3;
}

.result-links {
  grid-column: 1 / -1;
  min-width: 0;
}

.result-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e1e5e9;
  min-width: 0;
}

.result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 4px 6px 4px 0;
  color: #20252b;
  text-decoration: none;
  min-width: 0;
}

.result-link > span { min-width: 0; }
.result-link strong { display: block; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.result-link small { display: block; color: #69727e; font-size: 12px; line-height: 1.5; }
.result-link:hover strong { color: #a74300; text-decoration: underline; }
.result-link svg, .result-copy svg { width: 18px; height: 18px; flex: 0 0 18px; }

.result-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dfe3e7;
  border-radius: 6px;
  background: #f7f8fa;
  color: #4a5562;
  cursor: pointer;
}

.result-copy:hover { background: #fff1e7; border-color: #ecb087; }
.result-copy:disabled { opacity: .5; cursor: wait; }
.result-copy:focus-visible, .result-link:focus-visible { outline: 2px solid #a74300; outline-offset: 2px; }
.result-copy-status { grid-column: 1 / -1; color: #52606d; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.result-copy-status:not(:empty) { padding: 4px 0; }
.result-link-fallback { grid-column: 1 / -1; width: 100%; min-width: 0; font-size: 16px; }
.result-link-fallback[hidden] { display: none; }
.result-link-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0 0 4px;
  color: #69727e;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.result-history {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  max-width: 100%;
  color: #914000;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.result-history svg { width: 15px; height: 15px; flex: 0 0 15px; }
.result-history:focus-visible { outline: 2px solid #a74300; outline-offset: 2px; }

.detail-item {
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid #e1e5e9;
  border-radius: 0;
  background: transparent;
  padding: 13px 0;
}

.detail-item.wide {
  padding-bottom: 17px;
}

.detail-label {
  margin-bottom: 5px;
  color: #747d88;
  font-size: 11px;
}

.detail-value {
  color: #20252b;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .hero-product {
    display: none;
  }

  body[data-page="tracks"] .hero-inner,
  body[data-page="events"] .hero-inner {
    min-height: 330px;
    padding-top: 32px;
  }

  .modal.open .close {
    top: 18px;
    right: 18px;
  }

  .modal-card {
    max-height: calc(100dvh - 32px);
  }

  .modal-actions {
    margin: 14px -16px 16px;
    padding: 10px 58px 10px 16px;
  }

  .modal-actions .btn {
    flex: 1 1 105px;
    min-width: 100px;
    white-space: normal;
  }

  .detail-grid {
    gap: 0;
  }

  .detail-section {
    margin-top: 22px;
  }

  .detail-item {
    min-height: 0;
    padding: 12px 0;
  }
}

.brand-mark,
.nav a {
  flex: 0 0 auto;
}

@media (max-width: 340px) {
  .brand-title {
    max-width: none;
    overflow: visible;
    font-size: 0;
  }

  .brand-title::after {
    content: "RCFans";
    font-size: 13px;
  }
}

/* Detail permalinks and clipboard feedback. */
.modal-actions .copy-detail-link {
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: auto;
  border-color: #d8dde3;
  background: #f7f8fa;
  color: #48515d;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.copy-detail-link .link-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("/assets/icons/link.svg") center / contain no-repeat;
  mask: url("/assets/icons/link.svg") center / contain no-repeat;
}

.modal-top > div {
  min-width: 0;
}

#modalTitle {
  overflow-wrap: anywhere;
}

.detail-copy-fallback {
  margin: 0 0 20px;
  border-bottom: 1px solid #e1e5e9;
  padding: 4px 0 18px;
}

.detail-copy-fallback label {
  color: #48515d;
  font-size: 13px;
}

.detail-copy-fallback p {
  margin: 5px 0 10px;
  color: #68717d;
  font-size: 12px;
  line-height: 1.5;
}

.detail-copy-fallback input {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
}

.has-detail-notice .modal-top {
  padding-right: 44px;
}

.detail-notice {
  padding: 8px 0 12px;
}

.detail-notice p {
  color: #68717d;
  line-height: 1.6;
}

.detail-notice .btn {
  min-height: 44px;
}

#siteToast {
  display: block;
  inset: auto auto max(18px, env(safe-area-inset-bottom)) 50%;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  border: 1px solid #3a434d;
  background: #20252b;
  color: #fff;
  padding: 12px 18px;
  text-align: center;
  line-height: 1.5;
  transform: translate(-50%, 12px);
}

#siteToast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .modal-actions {
    gap: 6px;
  }

  .modal-actions .btn {
    flex: 1 1 auto;
    min-height: 44px;
    min-width: 0;
    padding: 10px 7px;
    font-size: 13px;
  }

  .modal-actions .copy-detail-link {
    min-width: 0;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .modal-actions .copy-detail-link {
    flex: 1 1 auto;
  }
}

/* Keep the track directory bounded without changing the existing cards. */
#trackResults {
  scroll-margin-top: 86px;
}

#trackResultsTitle:focus {
  outline: none;
}

.track-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
}

.track-pagination-top {
  padding-bottom: 12px;
}

.track-pagination-bottom {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.track-page-summary {
  min-width: 0;
  color: #626c78;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.track-page-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
}

.track-page-arrow,
.track-page-select {
  height: 44px;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  background: #fff;
  color: #333c47;
  cursor: pointer;
}

.track-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding: 0;
}

.track-page-select {
  width: 100px;
  min-width: 0;
  padding: 0 8px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.track-page-arrow:disabled {
  color: #969da6;
  background: #f0f2f4;
  cursor: default;
}

.track-page-arrow:not(:disabled):hover,
.track-page-select:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.track-page-arrow:focus-visible,
.track-page-select:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.page-chevron {
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.page-chevron-left {
  -webkit-mask-image: url("/assets/icons/chevron-left.svg");
  mask-image: url("/assets/icons/chevron-left.svg");
}

.page-chevron-right {
  -webkit-mask-image: url("/assets/icons/chevron-right.svg");
  mask-image: url("/assets/icons/chevron-right.svg");
}

@media (max-width: 380px) {
  .track-page-summary {
    font-size: 12px;
  }
}

/* Local mobile draft: preserve the desktop grid and reuse the same controls. */
.filter-search-row,
.advanced-filters {
  display: contents;
}

.filter-toggle,
.advanced-filter-actions,
.mobile-stats-slot {
  display: none;
}

body:is([data-page="tracks"], [data-page="events"]) .filter-row .advanced-filters > .field {
  grid-column: auto;
}

@media (max-width: 640px), (max-width: 920px) and (max-height: 500px) {
  body:is([data-page="tracks"], [data-page="events"]) .topbar-inner {
    min-height: 52px;
    padding: 4px 12px;
    gap: 12px;
  }

  .topbar .brand {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .topbar .brand > div:last-child {
    min-width: 0;
  }

  .topbar .brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 6px;
  }

  .topbar .brand-title {
    max-width: none;
    font-size: 12px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .topbar .brand-title::after,
  .topbar .brand span {
    display: none;
  }

  .topbar .nav {
    flex: 0 0 auto;
    gap: 2px;
  }

  .topbar .nav a {
    min-height: 44px;
    padding: 8px 9px;
    font-size: 12px;
    border-radius: 6px;
  }

  body:is([data-page="tracks"], [data-page="events"]) .hero-inner {
    min-height: 160px;
    padding: 20px 12px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero .eyebrow,
  .hero .hero-stats {
    display: none;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .hero p:not(.eyebrow) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0;
  }

  body:is([data-page="tracks"], [data-page="events"]) .wrap {
    padding-inline: 12px;
  }

  body:is([data-page="tracks"], [data-page="events"]) .filter-panel {
    margin: 0 -12px;
    padding: 12px;
    border: 0;
    border-bottom: 1px solid #e0e4e8;
    border-radius: 0;
    box-shadow: none;
  }

  .filter-panel .filter-head,
  .filter-panel .event-type-field,
  body:is([data-page="tracks"], [data-page="events"]) .trust-strip {
    display: none;
  }

  body:is([data-page="tracks"], [data-page="events"]) .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .filter-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    grid-column: 1 / -1;
    gap: 8px;
  }

  body:is([data-page="tracks"], [data-page="events"]) .filter-row .filter-search-row > .field {
    grid-column: auto;
  }

  .filter-search-row label,
  .filter-row > .field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body:is([data-page="tracks"], [data-page="events"]) .filter-panel .field input,
  body:is([data-page="tracks"], [data-page="events"]) .filter-panel .field select {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding-inline: 10px;
    font-size: 16px;
    border-radius: 6px;
  }

  .filter-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 88px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid #dfe3e7;
    border-radius: 6px;
    background: #f7f8fa;
    color: #303943;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .filter-chevron {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
  }

  .filter-toggle[aria-expanded="true"] .filter-chevron {
    transform: rotate(270deg);
  }

  .filter-toggle[aria-expanded="true"],
  .filter-toggle.has-filters {
    border-color: #eaa16d;
    background: #fff3eb;
    color: #994000;
  }

  .filter-toggle:focus-visible,
  .filter-panel button:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
  }

  .filter-active-count {
    position: absolute;
    top: -5px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border: 2px solid #fff;
    border-radius: 9px;
    background: #1d242b;
    color: #fff;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
  }

  .advanced-filters {
    display: none;
    grid-column: 1 / -1;
  }

  .more-filters-open .advanced-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    padding-top: 12px;
    border-top: 1px solid #e9ecf0;
  }

  .advanced-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .advanced-filter-actions button {
    min-height: 44px;
    font-size: 13px;
  }

  .advanced-filter-actions .text-button:disabled {
    color: #8b939b;
    cursor: default;
  }

  .filter-panel .quick-filters {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
    height: auto;
    min-height: 52px;
    margin: 8px 0 0;
    padding: 4px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .filter-panel .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-panel .chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    border-radius: 6px;
  }

  .mobile-stats-slot {
    display: block;
    margin-top: 12px;
  }

  .mobile-stats-slot .hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin: 0;
  }

  .mobile-stats-slot .hero-stat {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .mobile-stats-slot .hero-stat strong {
    font-size: 12px;
    color: #4f5963;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
  }

  .mobile-stats-slot .hero-stat span {
    margin: 0;
    font-size: 11px;
    color: #67717c;
  }

  .results-head {
    flex-direction: row;
    align-items: center;
    min-height: 44px;
    margin: 5px 0 8px;
    padding: 0;
    gap: 8px;
  }

  .results-head .section-kicker {
    display: none;
  }

  .results-head h2 {
    font-size: 20px;
  }

  .results-actions {
    max-width: 60%;
    padding: 0;
    gap: 0 8px;
    font-size: 12px;
  }

  .results-actions .text-button {
    min-height: 44px;
  }
}
/* Explicit APP entry: the native container already supplies the primary brand/navigation. */
.record-name-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.record-name-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-related-events {
  display: contents;
}

.topbar.is-loading .nav a:not(.active) {
  opacity: 0.65;
  cursor: progress;
}

@media (max-width: 640px), (max-width: 920px) and (max-height: 500px) {
  .app-embedded body[data-page] .topbar {
    background: #fff;
    border-bottom: 1px solid #e4e7eb;
    box-shadow: none;
  }

  .app-embedded body[data-page] .topbar-inner {
    min-height: 48px;
    padding: 0 12px;
  }

  .app-embedded .topbar .brand {
    display: none;
  }

  .app-embedded .nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .app-embedded body[data-page] .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #626a74;
    box-shadow: none;
    font-size: 15px;
  }

  .app-embedded body[data-page] .nav a.active {
    color: #a63e00;
    border-bottom-color: #ff6500;
    background: transparent;
  }

  .app-embedded body[data-page] .hero-inner {
    min-height: 96px;
    padding: 22px 16px;
  }

  .app-embedded body[data-page] .hero h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.4;
  }

  .app-embedded .hero p,
  .app-embedded #mobileStatsSlot {
    display: none;
  }

  .app-embedded .results-head {
    margin-top: 12px;
  }

  .app-embedded :is(.track-card, .event-card) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-radius: 8px;
  }

  .app-embedded :is(.track-card, .event-card) .card-body {
    display: contents;
  }

  .app-embedded :is(.track-card, .event-card) .card-title {
    grid-row: 1;
    margin: 14px 14px 4px;
    align-items: flex-start;
    gap: 8px;
  }

  .app-embedded :is(.track-card, .event-card) .card-title h3 {
    font-size: 18px;
    line-height: 1.4;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .app-embedded :is(.track-card, .event-card) .status-pill {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .app-embedded :is(.track-card, .event-card) .meta-line {
    grid-row: 2;
    margin: 0 14px 12px;
  }

  .app-embedded :is(.track-card, .event-card) .cover {
    grid-row: 3;
    margin: 0 14px;
    aspect-ratio: 16 / 7;
    min-height: 0;
    width: auto;
    border-radius: 4px;
  }

  .app-embedded :is(.track-card, .event-card) .description,
  .app-embedded :is(.track-card, .event-card) .tags,
  .app-embedded :is(.track-card, .event-card) .assurance-line {
    margin: 10px 14px 0;
  }

  .app-embedded :is(.track-card, .event-card) .card-actions {
    margin: 12px 14px 14px;
  }

  .app-embedded :is(.track-card, .event-card) .description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
  }

  .app-embedded .event-card .cover {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #eef0f2;
  }

  .app-embedded .event-card .cover::after {
    display: none;
  }
}

/* V1.4.0 draft 3: one event focal point and photographic track discovery. */
body[data-page="home"] { background:#f7f8fa; }
body[data-page="home"] .topbar { background:#0b0d0f;border-color:#202429; }
body[data-page="home"] .topbar-inner { min-height:72px; }
body[data-page="home"] .brand span { color:#9aa2ac; }
body[data-page="home"] .nav a { color:#b5bcc4; }
body[data-page="home"] .nav a.active { background:var(--brand);color:#111;border-color:var(--brand); }
.home-hero { max-width:1168px;margin:24px auto 0;border:0;border-radius:12px;overflow:hidden;color:#fff;background:linear-gradient(90deg,#080c11e8,#080c1188 50%,#080c1122),var(--hero-image,url('/assets/rcfans-track-hero-v1.jpg')) center 55%/cover; }
body[data-page="home"] .hero-inner { min-height:144px;padding:28px 32px; }
body[data-page="home"] .hero h1 { margin:0;font-size:30px;letter-spacing:-.025em;line-height:1.3;color:#fff; }
.home-intro { margin:10px 0 0;font-size:13px;line-height:1.6;color:#d9dce0; }
body[data-page="home"] .home-main { max-width:1200px;margin:0 auto;padding:28px 16px 32px;display:grid;grid-template-columns:minmax(0,1fr);gap:32px; }
.home-section { min-width:0; }
.home-section-head { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px; }
.home-section-head h2 { margin:0;font-size:22px;line-height:1.4;letter-spacing:-.025em; }
.home-more { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;white-space:nowrap;font-size:12px;color:#727982; }
.home-more:hover { color:var(--brand-dark); }
.home-more > span { font-size:21px;line-height:1; }
.home-event-grid { display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:0 28px; }
.home-event-card:not(.home-spotlight) { display:grid;grid-template-columns:54px minmax(0,1fr) 10px;align-items:center;gap:14px;border-bottom:1px solid #e5e8ed;min-height:116px;padding:12px 0; }
.home-event-card:not(.home-spotlight):last-child { border-bottom:0; }
.home-event-picture { width:54px;height:76px;display:flex;align-items:center;justify-content:center;background:#eef0f3;border-radius:5px;overflow:hidden; }
.home-event-picture img { width:100%;height:100%;object-fit:contain;display:block; }
.home-event-content { min-width:0; }
.home-event-content h3 { margin:6px 0;font-size:16px;line-height:1.5;font-weight:650;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.home-event-date { display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:0;font-size:12px;font-weight:600;line-height:1.5;color:#a8480d; }
.home-event-city { padding-left:10px;border-left:1px solid #d9dfe5;font-size:12px;font-weight:400;color:#737b85; }
.home-card-meta { display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:11px;color:#737b85;line-height:1.5; }
.home-registration::before { content:'·';padding-right:7px;color:#bac0c6; }
.home-registration.is-live { color:#168058; }
.home-row-arrow { color:#a6adb5;font-size:22px;font-weight:300; }
.home-spotlight { grid-row:span 2;display:grid;grid-template-columns:minmax(0,1fr) 40%;gap:20px;padding:24px;border-radius:14px;background:#171b21;color:#fff;min-height:284px;overflow:hidden; }
.home-spotlight:only-child { grid-column:1/-1; }
.home-spotlight-copy { display:flex;flex-direction:column;align-items:flex-start;min-width:0; }
.home-spotlight-label { margin:0 0 22px;font-size:11px;font-weight:500;letter-spacing:.025em;color:#e5e9ed; }
.home-spotlight-label > span { margin-left:10px;padding-left:10px;border-left:1px solid #4a5058;color:#9ca6b0; }
.home-spotlight-date { margin:0 0 8px;color:#ffae76;font-size:14px;font-weight:600;line-height:1.5; }
.home-spotlight h3 { text-wrap:balance;margin:0;font-size:23px;font-weight:700;line-height:1.4;letter-spacing:-.025em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.home-spotlight-location { margin:12px 0 22px;font-size:12px;color:#aab1ba; }
.home-spotlight-action { margin-top:auto;display:flex;align-items:center;gap:20px;min-height:34px;font-size:12px;font-weight:600;color:#fff; }
.home-spotlight-action > span { display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ff6500;color:#171b21;font-size:18px; }
.home-spotlight-poster { display:flex;align-items:center;justify-content:center;min-width:0; }
.home-spotlight-poster img { display:block;width:100%;height:236px;object-fit:contain;filter:drop-shadow(0 4px 12px #0004); }
.home-track-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.home-track-card { min-width:0;overflow:hidden;border:1px solid #e6e9ee;border-radius:12px;background:#fff; }
.home-track-picture { position:relative;aspect-ratio:1.75;background:#e9edf1; }
.home-track-picture::after { position:absolute;inset:60% 0 0;content:'';background:linear-gradient(transparent,#0008);pointer-events:none; }
.home-track-picture img { width:100%;height:100%;display:block;object-fit:cover; }
.home-track-city { position:absolute;left:16px;bottom:13px;z-index:1;color:#fff;font-size:12px;font-weight:550; }
.home-track-content { padding:16px; }
.home-track-content h3 { margin:0 0 7px;font-size:16px;font-weight:650;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.home-location { margin:0;font-size:11px;color:#818994;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.home-track-foot { display:flex;align-items:center;justify-content:space-between;margin-top:14px; }
.home-track-foot > span:last-child { color:#707984;font-size:16px; }
.home-operating { font-size:11px;color:#737b85; }
.home-operating.open { color:#147d59; }
.home-operating.appointment { color:#9d5b08; }
.home-empty { grid-column:1/-1;padding:28px 0;margin:0;text-align:center;font-size:13px;color:#737b85;line-height:1.8; }
.home-partner { display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e2e6e9;padding-top:16px;color:#8a9199;font-size:12px; }
.home-partner .home-more { color:#6d7580; }
@media(max-width:1200px) { .home-hero { margin-left:16px;margin-right:16px; } }
@media(max-width:900px) {
 .home-event-grid { grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:0; }
 .home-spotlight { grid-row:auto;margin-bottom:8px;grid-template-columns:minmax(0,1fr) 38%; }
 .home-event-card:not(.home-spotlight) { min-height:100px; }
 .home-track-grid { display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:76%;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:2px;padding:2px 2px 12px;scrollbar-width:thin;scrollbar-color:#c8ced6 transparent; }
 .home-track-card { scroll-snap-align:start; }
 .home-track-content h3 { min-height:48px; }
}
@media(max-width:640px),(max-width:920px) and (max-height:500px) {
 .topbar .nav { gap:2px; }
 .topbar .nav a { font-size:12px;padding:8px 9px;white-space:nowrap; }
 body[data-page="home"] .topbar-inner { min-height:56px; }
 body[data-page="home"] .home-hero { margin:12px 16px 0;border-radius:10px; }
 body[data-page="home"] .hero-inner { min-height:112px;padding:20px; }
 body[data-page="home"] .hero h1 { font-size:24px; }
 .home-intro { font-size:12px;margin-top:8px; }
 body[data-page="home"] .home-main { padding:16px 16px 24px;gap:24px; }
 .home-section-head { margin-bottom:8px; }
 .home-section-head h2 { font-size:20px; }
 .home-more { font-size:12px; }
 .home-spotlight { padding:18px;gap:14px;min-height:256px; }
 .home-spotlight-label { font-size:10px;margin-bottom:20px; }
 .home-spotlight-date { font-size:12px; }
 .home-spotlight h3 { font-size:18px; }
 .home-spotlight-location { font-size:11px;margin:10px 0 14px; }
 .home-spotlight-poster img { height:220px; }
 .home-spotlight-action { font-size:11px;gap:14px; }
 .home-event-card:not(.home-spotlight) { grid-template-columns:44px minmax(0,1fr) 8px;gap:12px;min-height:98px; }
 .home-event-picture { width:44px;height:62px; }
 .home-event-content h3 { font-size:14px;line-height:1.5; }
 .home-event-date,.home-event-city { font-size:11px; }
 .home-event-date { gap:3px 7px; }
 .home-event-city { padding-left:7px; }
 .home-track-picture { aspect-ratio:1.6; }
 .home-track-content { padding:14px; }
 .home-track-content h3 { font-size:15px;min-height:45px; }
 .home-track-foot { margin-top:12px; }
 .home-partner { padding-top:10px;font-size:11px; }
 .home-partner .home-more { font-size:11px; }
}
/* The host APP owns branding and its back button. Keep only web section tabs. */
.app-embedded body:is([data-page="home"],[data-page="tracks"],[data-page="events"]) .topbar { background:#fff;border-bottom:1px solid #e9ecef;box-shadow:none; }
.app-embedded body[data-page] .topbar-inner { min-height:48px;padding:0 16px; }
.app-embedded .topbar .brand { display:none; }
.app-embedded .topbar .nav { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%; }
.app-embedded body[data-page] .topbar .nav a { display:flex;justify-content:center;align-items:center;min-height:48px;padding:10px 6px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:#737b85;font-size:14px; }
.app-embedded body[data-page] .topbar .nav a.active { color:#a9470a;border-bottom-color:#ff6500;font-weight:700; }
.app-embedded body[data-page="home"] .home-hero { display:none; }
.app-embedded body[data-page="home"] .home-main { max-width:780px;grid-template-columns:minmax(0,1fr);padding-top:12px; }
.app-embedded body[data-page="home"] .home-section-head { margin-bottom:7px; }
.app-embedded body[data-page="home"] .site-footer { padding:12px 16px max(16px,env(safe-area-inset-bottom));background:transparent;border-top:1px solid #e9ecef;color:#90979f; }
.app-embedded body[data-page="home"] .site-footer-inner { display:block;padding:0; }
.app-embedded body[data-page="home"] .footer-brand,
.app-embedded body[data-page="home"] .footer-meta nav,
.app-embedded body[data-page="home"] .footer-version,
.app-embedded body[data-page="home"] .footer-separator { display:none; }
.app-embedded body[data-page="home"] .footer-legal { display:flex;justify-content:center;flex-wrap:wrap;gap:5px 12px;margin:0;text-align:center;font-size:10px;color:#90979f; }
.app-embedded body[data-page="home"] .site-footer a { color:#90979f; }
@media(min-width:641px) {
 .app-embedded body[data-page="home"] .home-main { padding-left:24px;padding-right:24px; }
}
