:root {
  --bg: #080808;
  --card: #11110f;
  --text: #f3f1e9;
  --muted: #a5a59d;
  --line: rgba(243, 241, 233, 0.18);
  --btn: #e6ff00;
  --field: #0c0c0b;
  --accent: #e6ff00;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: none;
  margin: 24px auto;
  padding: 0 16px 28px;
}

h1 {
  font-size: 22px;
  margin: 0;
}

h2 {
  margin: 0;
  font-size: 20px;
}

h3 {
  margin: 0;
  font-size: 18px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo,
.brand img {
  height: 46px;
  width: auto;
  display: block;
}

.brand-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.brand-sub b {
  color: var(--text);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

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

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

.muted {
  color: var(--muted);
  font-size: 13px;
}

.bullet-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.bullet-list li {
  margin: 8px 0;
}

footer {
  margin: 34px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.pillbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pillbtn:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pillbtn.active {
  background: var(--btn);
  border-color: rgba(59, 130, 246, 0.35);
}

.pillbtn.small {
  padding: 7px 10px;
  font-size: 13px;
}

.pillbtn.subtle {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--muted);
}

.pillbtn.subtle:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.pillbtn.danger {
  border-color: rgba(255, 92, 92, 0.35);
  color: #ffb4b4;
}

.pillbtn.danger:hover {
  background: rgba(255, 92, 92, 0.08);
}

.clockcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
}

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

.clockval {
  font-weight: 900;
  letter-spacing: .02em;
}

.pill {
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 999px;
  padding: 10px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

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

.pillv {
  font-weight: 900;
}

.sectiontitle {
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.link-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tour hero */
.tour-hero {
  display: grid;
  grid-template-columns: minmax(500px, 1.2fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch; /* key change */
}

.tour-hero-main {
  min-width: 0;
}

.tour-kicker {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 800;
}

.tour-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
}

.tour-subtitle {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tour-summary-text {
  margin-top: 14px;
  max-width: 680px;
}

.tour-next-line {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tour-next-label {
  color: var(--accent);
  font-weight: 700;
}

.tour-next-value {
  font-weight: 500;
}

.tour-hero-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes tabs to bottom */
  align-items: flex-end;
  gap: 14px;
  min-width: 260px;
  height: 100%;
}

.tour-hero-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.tour-section-buttons.tour-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-top: auto;
}

.tour-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tour-tab-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text);
  transform: translateY(1px);
}

/* Main layout */
.tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.tour-main-column,
.tour-sidebar {
  min-width: 0;
}

.sidebar-card {
  margin-bottom: 14px;
}

/* Forms */
input[type="text"],
input[type="date"],
select,
textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

label {
  display: block;
  margin-bottom: 8px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
  overflow-y: auto;
}

.modal.open {
  display: flex;
}

.modalcard {
  width: min(820px, 100%);
  max-height: 90vh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modalcard-small {
  width: min(560px, 100%);
}

.modalhead {

  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.modalcard > form {
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.modaltitle {
  font-size: 18px;
  font-weight: 700;
}

/* Stops */
.stops-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.stop-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stop-wrap:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.stop-hidden {
  display: none;
}

.stop-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  cursor: pointer;
}

.stop-main-left,
.stop-main-middle,
.stop-main-right {
  min-width: 0;
}

.stop-city-country {
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
  line-height: 1.2;
}

.stop-venue {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.stop-main-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.stop-date {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.stop-chevron {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  justify-self: end;
}

.stop-wrap:hover .stop-date {
  color: var(--accent);
}

.stop-wrap:hover .stop-chevron {
  color: var(--text);
}

.stop-wrap.open .stop-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.stop-expand {
  display: none;
  padding: 0 18px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.stop-wrap.open .stop-expand {
  display: block;
}

.stop-expand-inner {
  padding-top: 14px;
}

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

.stop-meta-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.stop-meta-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stop-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.stop-notes {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.stop-actions-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stop-action-buttons {
  gap: 8px;
  align-items: center;
}

.hidden-stop {
  display: none;
}

.stop-sep {
  color: var(--muted);
}

.tour-tab-btn.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text);
}

.tour-section-buttons.tour-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
  overflow-x: auto;
  padding: 4px;
}

.tour-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tour-tab-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--text);
  transform: translateY(1px);
}

.tour-tab-btn.active {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text);
}

.tracks-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.summary-card {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.summary-card.flagged .summary-value {
  color: #ffb4b4;
}

.tracks-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

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

.tracks-table th,
.tracks-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.tracks-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.track-title {
  font-weight: 700;
  color: var(--text);
}

.track-subnote {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.status-chip.yes {
  color: #b8ffd0;
  border-color: rgba(80, 220, 140, 0.28);
  background: rgba(80, 220, 140, 0.08);
}

.status-chip.no {
  color: #ffd1d1;
  border-color: rgba(255, 120, 120, 0.24);
  background: rgba(255, 120, 120, 0.08);
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffb4b4;
  border: 1px solid rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.08);
}

.flag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.flag-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.flag-item-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.tour-hero-side {
  min-width: 0;
  overflow: visible;
}

.tour-section-buttons.tour-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 6px;
  scrollbar-width: none;
}

.tour-section-buttons.tour-tabs::-webkit-scrollbar {
  display: none;
}

.tour-tab-btn {
  flex: 0 0 auto;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

button[disabled],
.pillbtn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

button[disabled],
.pillbtn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

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

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

button[disabled],
.pillbtn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.small-select {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 6px;
}

.pillbtn.tiny {
  padding: 4px 8px;
  font-size: 11px;
}

/* VenueMan Home */
/* VenueMan home list */
.venueman-list-link {
  display: block;
  text-decoration: none;
}

.venueman-list-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.venueman-list-link + .venueman-list-link {
  margin-top: 10px;
}

.venueman-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255,255,255,0.02);
}

.venueman-list-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.venueman-list-location {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.venueman-list-chevron {
  font-size: 20px;
  color: var(--muted);
  justify-self: end;
}

.venueman-list-item:hover .venueman-list-chevron {
  color: var(--text);
}

.venueman-list-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.venueman-list-item {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.venueman-list-link + .venueman-list-link {
  margin-top: 10px;
}

.venueman-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255,255,255,0.02);
}

.venueman-list-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.venueman-list-location {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.venueman-list-chevron {
  font-size: 20px;
  color: var(--muted);
  justify-self: end;
}

.venueman-files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.venueman-file-card {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.venueman-file-name {
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  word-break: break-word;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.checklist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.checklist-child {
  margin-left: 18px;
  border-color: rgba(255,255,255,0.04);
}

.checklist-label {
  font-weight: 700;
  color: var(--text);
}

.small-select {
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .venueman-list-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .venueman-list-chevron {
    display: none;
  }
}

@media (max-width: 900px) {
  .venueman-list-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .venueman-list-chevron {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .tour-hero,
  .tour-grid {
    grid-template-columns: 1fr;
  }

  .tour-hero-side {
    align-items: flex-start;
  }

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

  .tour-section-buttons.tour-tabs {
  justify-content: flex-start;
}
}


@media (max-width: 900px) {
  .stop-summary-main.one-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stop-date-main {
    text-align: left;
    font-size: 16px;
  }

  .stop-place-line {
    font-size: 16px;
  }

  .tour-title {
    font-size: 24px;
  }
}

/* =========================================================
   VenueMan Browser
   ========================================================= */

.venueman-browser {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}


/* ---------------------------------------------------------
   Filter Sidebar
   --------------------------------------------------------- */

.venueman-browser-sidebar {
  border-right: 1px solid var(--line);
  padding-right: 18px;
  min-width: 0;
}

.venueman-filter-section {
  margin-bottom: 22px;
}

.venueman-filter-section input[type="search"] {
  width: 100%;
  margin-top: 7px;
}

.venueman-filter-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}


/* ---------------------------------------------------------
   Filter Buttons
   --------------------------------------------------------- */

.venueman-filter-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  min-height: 38px;

  padding: 8px 10px;

  border-radius: 8px;

  cursor: pointer;

  text-align: left;
  font: inherit;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.venueman-filter-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.venueman-filter-button.active {
  background: var(--accent);
  color: #000;
}

.venueman-filter-button.active .muted {
  color: rgba(0, 0, 0, 0.65);
}


/* ---------------------------------------------------------
   Main Directory
   --------------------------------------------------------- */

.venueman-browser-main {
  min-width: 0;
}

.venueman-list-header {
  display: grid;

  grid-template-columns:
    minmax(240px, 2fr)
    minmax(250px, 1.5fr)
    110px
    26px;

  gap: 16px;

  padding: 0 12px 9px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  border-bottom: 1px solid var(--line);
}


/* ---------------------------------------------------------
   Venue Rows
   --------------------------------------------------------- */

.venueman-directory {
  display: flex;
  flex-direction: column;
}

.venueman-directory-row {
  display: grid;

  grid-template-columns:
    minmax(240px, 2fr)
    minmax(250px, 1.5fr)
    110px
    26px;

  gap: 16px;

  align-items: center;

  min-height: 54px;

  padding: 8px 12px;

  color: inherit;
  text-decoration: none;

  border-bottom: 1px solid var(--line);

  transition:
    background 0.15s ease;
}

.venueman-directory-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.venueman-directory-name {
  font-weight: 700;
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venueman-directory-location {
  font-size: 13px;
  min-width: 0;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venueman-directory-capacity {
  font-size: 13px;
  text-align: right;

  font-variant-numeric:
    tabular-nums;
}

.venueman-directory-chevron {
  font-size: 22px;
  text-align: right;
  color: var(--muted);
}


/* ---------------------------------------------------------
   Mobile / Narrow Screens
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .venueman-browser {
    grid-template-columns: 1fr;
  }

  .venueman-browser-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);

    padding-right: 0;
    padding-bottom: 12px;
  }

  .venueman-list-header {
    display: none;
  }

  .venueman-directory-row {
    grid-template-columns:
      minmax(0, 1fr)
      auto;

    gap: 4px 12px;

    padding-top: 11px;
    padding-bottom: 11px;
  }

  .venueman-directory-name {
    grid-column: 1;
    grid-row: 1;
  }

  .venueman-directory-location {
    grid-column: 1;
    grid-row: 2;

    white-space: normal;
  }

  .venueman-directory-capacity {
    display: none;
  }

  .venueman-directory-chevron {
    grid-column: 2;
    grid-row: 1 / span 2;

    align-self: center;
  }
}
.venue-flag{
    font-size:20px;
    margin-right:10px;
    display:inline-block;
    width:26px;
    text-align:center;
}

.track-check{

    width:28px;
    height:28px;

    border:none;
    border-radius:6px;

    cursor:pointer;

    background:#2c2c2c;

    color:#888;

    font-size:16px;

    transition:.15s;
}

.track-check.checked{

    background:#27ae60;

    color:white;

}

/* Final Lemon Live overrides: deliberately last in the cascade. */
html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap { margin-top: 0; padding-top: 0; }
.topbar {
  align-items: stretch;
  margin-bottom: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.brand { gap: 10px; min-height: 42px; }
.brand-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--accent);
}
.brand-name, .brand-divider, .brand-sub, .clocklabel, .clockval,
.pillbtn, .pillk, .sectiontitle, .tour-kicker, th, label, footer {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}
.brand-name, .brand-divider {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  white-space: nowrap;
}
.brand-divider { color: var(--muted); }
.brand-product h1 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand-sub {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-sub b { color: var(--accent); font-weight: 500; }
.card, .clockcard, .pill, .pillbtn, input, select, textarea, button,
.tour-tab-btn, .tour-link-card, .tour-link, .badge, .status-pill,
.tour-tabs, .tour-summary-item, .tour-overview-stat, .track-check {
  border-radius: 0;
  box-shadow: none;
}
.card { padding: 18px; }
.pillbtn {
  min-height: 38px;
  padding: 9px 12px;
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.pillbtn:hover, .pillbtn:focus-visible, .pillbtn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.pillbtn.subtle { background: transparent; border-color: var(--line); color: var(--muted); }
.pillbtn.subtle:hover, .pillbtn.subtle:focus-visible {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.pillbtn.danger:hover, .pillbtn.danger:focus-visible {
  background: #ffb4b4;
  border-color: #ffb4b4;
  color: var(--bg);
}
.clockcard { min-height: 38px; padding: 9px 12px; background: transparent; }
.clocklabel {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
}
.clockval {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sectiontitle {
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
input, select, textarea {
  background: var(--field);
  border-color: var(--line);
  color: var(--text);
}
input:hover, select:hover, textarea:hover { border-color: rgba(230, 255, 0, .55); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.tour-link-card, .tour-link {
  background: var(--card);
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.tour-link-card:hover, .tour-link:hover {
  transform: none;
  border-color: var(--accent);
  box-shadow: none;
}
footer {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .topbar > .row { width: 100%; }
  .topbar > .row .pillbtn { flex: 1 1 auto; }
}

/* Remove remaining legacy rounded/blue component treatments. */
.stop-wrap,
.stop-meta-card,
.modalcard,
.status-chip,
.flag-chip,
.flag-item,
.venueman-list-item,
.venueman-file-card,
.checklist-item,
.tour-tab-btn {
  border-radius: 0;
  box-shadow: none;
}

.stop-wrap,
.venueman-list-item {
  background: var(--card);
  border-color: var(--line);
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.stop-wrap:hover,
.stop-wrap:focus-within,
.venueman-list-item:hover,
.venueman-list-item:focus-within {
  transform: none;
  background: var(--card);
  border-color: var(--accent);
  box-shadow: none;
}

.tour-tab-btn {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  transform: none;
}

.tour-tab-btn:hover,
.tour-tab-btn:focus-visible,
.tour-tab-btn.active {
  transform: none;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* Compact Tracks summary readouts. */
.tracks-summary-grid {
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.summary-card {
  min-height: 72px;
  margin-bottom: 0;
  padding: 11px 12px;
}

.summary-label {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.summary-value {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .tracks-summary-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }
}

@media (max-width: 800px) {
  .tracks-summary-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }
}

