/**
 * MaxZero — recherche + résultats type moteur ferroviaire.
 * Couche visuelle au-dessus d’AppShell 2026. Aucune donnée inventée.
 */

/* ── Hero recherche (avant résultats) ─────────────────────────────── */
body.app-shell.tab-planner:not(.has-results) #sidebar.mz-search-hero {
  position: relative;
  background-color: #fff;
  background-image: none;
  color: #202631;
  padding: 16px;
}
body.app-shell .mz-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}
body.app-shell.tab-planner:not(.has-results) #sidebar.mz-search-hero::before {
  content: none;
}
body.app-shell.has-results .mz-hero-atmosphere { display: block; }
body.app-shell .mz-rail-hero-copy {
  display: none;
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 8px auto 16px;
  color: #fff;
}
body.app-shell.tab-planner:not(.has-results) .mz-rail-hero-copy {
  display: block;
}
body.app-shell .mz-rail-hello {
  margin: 0 0 6px;
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
:root.dark body.app-shell .mz-rail-hello {
  color: rgba(255, 255, 255, 0.9);
}
body.app-shell .mz-rail-hero-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe1c7;
}
body.app-shell .mz-rail-hero-title {
  margin: 0 0 8px;
  font-family: var(--mz-font-display, var(--font-display));
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
body.app-shell .mz-rail-hero-lead {
  margin: 0;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.45;
  color: #f4f7fb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
body.app-shell.has-results .mz-rail-hero-copy { display: none !important; }

body.app-shell.tab-planner:not(.has-results) .mz-od-bar {
  background: var(--mz-surface);
  border: 1px solid var(--mz-border);
  border-radius: 22px;
  box-shadow: var(--mz-shadow-lg);
}

/* Options, récents et la note SNCF : même colonne que la carte de recherche. */
body.app-shell.tab-planner:not(.has-results) #searchRecentsHost,
body.app-shell.tab-planner:not(.has-results) #advancedSearch,
body.app-shell.tab-planner:not(.has-results) .sidebar-scroll > .mz-sncf-note {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.app-shell.tab-planner:not(.has-results) #searchRecentsHost {
  margin-top: 12px;
  margin-bottom: 0;
  padding: 4px 14px 12px;
}
body.app-shell.tab-planner:not(.has-results) #advancedSearch {
  margin-top: 12px;
  margin-bottom: 8px;
  padding-left: 14px;
  padding-right: 14px;
}
body.app-shell.tab-planner:not(.has-results) .sidebar-scroll > .mz-sncf-note {
  margin-top: 0;
  margin-bottom: 12px;
  padding-left: 14px;
  padding-right: 14px;
}
@media (min-width: 901px) {
  body.app-shell.tab-planner:not(.has-results) #searchRecentsHost,
  body.app-shell.tab-planner:not(.has-results) #advancedSearch,
  body.app-shell.tab-planner:not(.has-results) .sidebar-scroll > .mz-sncf-note {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* ── Barre compacte une fois les résultats là ─────────────────────── */
body.app-shell.has-results #sidebar.mz-search-hero {
  background-color: #fff;
  background-image: none;
  color: #202631;
  padding: 16px;
}
body.app-shell.has-results #advancedSearch,
body.app-shell.has-results #searchRecentsHost,
body.app-shell.has-results .mz-search-forecast,
body.app-shell.has-results #mainContent > p.mz-results-summary,
body.app-shell.has-results .mz-freshness,
body.app-shell.has-results .detail-header,
body.app-shell.has-results .mz-results-days-note,
body.app-shell.has-results #searchQuerySummary {
  display: none !important;
}
@media (min-width: 1024px) {
  body.app-shell.has-results .mz-od-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    gap: 8px;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 8px 10px !important;
    border-radius: 16px;
    background: var(--mz-surface);
    border: 1px solid var(--mz-border);
    box-shadow: var(--mz-shadow);
    position: relative;
  }
  body.app-shell.has-results .mz-od-bar .welcome-kicker,
  body.app-shell.has-results .mz-od-bar .mz-search-modes,
  body.app-shell.has-results .mz-od-bar .explore-origin-chip,
  body.app-shell.has-results .mz-od-bar .od-empty-hint,
  body.app-shell.has-results .mz-od-bar .trip-type-hint,
  body.app-shell.has-results .mz-od-bar .mz-today-chip,
  body.app-shell.has-results .mz-od-bar .mz-trip-secondary,
  body.app-shell.has-results .mz-od-bar .mz-slot-hint,
  body.app-shell.has-results .mz-od-bar .mz-slot-kicker,
  body.app-shell.has-results .mz-od-bar .od-field-label,
  body.app-shell.has-results .mz-od-bar .swap-btn-label,
  body.app-shell.has-results .mz-od-bar #destGeoBtn,
  body.app-shell.has-results .mz-od-bar .place-search-go,
  body.app-shell.has-results .mz-od-bar .gare-group,
  body.app-shell.has-results .mz-od-bar #frequentDestHints,
  body.app-shell.has-results .mz-od-bar #progressWrap,
  body.app-shell.has-results .mz-od-bar #planUsageBar,
  body.app-shell.has-results .day-search-hint,
  body.app-shell.has-results .day-search-cta-actions {
    display: none !important;
  }
  body.app-shell.has-results .mz-od-bar > .sidebar-od-card,
  body.app-shell.has-results .mz-od-bar > #daySearchSection,
  body.app-shell.has-results .mz-od-bar > .sidebar-dock {
    display: flex !important;
    align-items: center;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
  }
  body.app-shell.has-results .mz-od-bar > .sidebar-od-card {
    flex: 1 1 auto;
  }
  body.app-shell.has-results .mz-od-bar > #daySearchSection,
  body.app-shell.has-results .mz-od-bar > .sidebar-dock {
    flex: 0 0 auto;
  }
  body.app-shell.has-results .mz-od-bar .od-stack {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
  body.app-shell.has-results .mz-od-bar .mz-when-primary,
  body.app-shell.has-results .mz-od-bar .mz-date-primary {
    display: flex !important;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
  }
  body.app-shell.has-results .mz-od-bar .sidebar-dock {
    flex-direction: row;
    overflow: visible;
  }
  body.app-shell.has-results .mz-od-bar .station-search-wrap {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
  }
  body.app-shell.has-results .mz-od-bar .place-search-field {
    display: block;
    min-width: 0;
  }
  body.app-shell.has-results .mz-od-bar .station-search-input {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.app-shell.has-results .mz-results-days {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.app-shell.has-results .mz-od-bar .swap-row {
    flex: 0 0 44px;
    width: 44px;
    margin: 0;
  }
  body.app-shell.has-results .mz-od-bar .swap-btn,
  body.app-shell.has-results .mz-od-bar .swap-btn#odSwapBtn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }
  body.app-shell.has-results .mz-od-bar .station-search-input,
  body.app-shell.has-results .mz-od-bar .mz-slot-date,
  body.app-shell.has-results .mz-od-bar .day-search-btn {
    min-height: 44px;
    height: 44px;
  }
  body.app-shell.has-results .mz-od-bar #origGeoBtn {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  body.app-shell.has-results .mz-od-bar #destStationSearch {
    padding-left: 12px;
  }
  body.app-shell.has-results .mz-od-bar .mz-product-bar {
    display: flex !important;
    flex: 0 0 auto;
    margin: 0;
    gap: 4px;
  }
  body.app-shell.has-results .mz-od-bar .mz-product-bar .product-btn {
    min-height: 44px;
    padding: 0 8px;
    font-size: 13px;
  }
  body.app-shell.has-results .mz-od-bar .product-hint {
    display: none !important;
  }
  body.app-shell.has-results .mz-od-bar .mz-slot-date {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 132px;
    max-width: 240px;
    border-radius: 12px;
  }
  body.app-shell.has-results .mz-od-bar .day-search-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    white-space: nowrap;
    border-radius: 12px;
    padding: 0 16px;
  }
  body.app-shell.has-results .mz-od-bar .mz-slot-value {
    font-size: 14px;
    font-weight: 700;
  }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  body.app-shell.has-results .mz-od-bar .day-search-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }
  body.app-shell.has-results .mz-od-bar .day-search-btn::before {
    content: "⌕";
    font-size: 20px;
    line-height: 1;
  }
}
@media (min-width: 1440px) {
  body.app-shell.has-results .mz-od-bar,
  body.app-shell.tab-planner .mz-od-bar {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.app-shell.has-results .mz-rail-workspace {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Bandeau de dates ─────────────────────────────────────────────── */
body.app-shell .mz-rail-week {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
}
body.app-shell.has-results .mz-rail-week {
  position: static;
  top: auto;
  z-index: auto;
  width: auto;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: var(--mz-bg, #F7F8FA);
  padding-top: 8px;
}
body.app-shell .mz-rail-week-readonly .mz-rail-week-day {
  cursor: default;
}
body.app-shell .mz-rail-week-day {
  flex: 1 1 0;
  min-width: 84px;
  min-height: 78px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid var(--mz-border);
  background: var(--mz-surface);
  color: var(--mz-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  scroll-snap-align: center;
  font: inherit;
  transition: border-color var(--mz-duration, 180ms) var(--mz-ease), background var(--mz-duration, 180ms) var(--mz-ease);
}
body.app-shell .mz-rail-week-day.is-active {
  background: var(--mz-electric, #3d5afe);
  border-color: var(--mz-electric, #3d5afe);
  color: #fff;
}
body.app-shell .mz-rail-week-wd {
  font-size: 12px;
  font-weight: 700;
}
body.app-shell .mz-rail-week-num {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body.app-shell .mz-rail-week-price {
  font-size: 12px;
  font-weight: 800;
}
body.app-shell .mz-rail-week-price.is-max { color: var(--mz-success, #16a36a); }
body.app-shell .mz-rail-week-day.is-active .mz-rail-week-price.is-max { color: #d9ffe9; }
body.app-shell .mz-rail-week-price.is-empty { color: var(--mz-muted); }
body.app-shell .mz-rail-week-price.is-voir { color: var(--mz-muted); }
body.app-shell .mz-rail-week-day.is-active .mz-rail-week-price.is-empty,
body.app-shell .mz-rail-week-day.is-active .mz-rail-week-price.is-voir { color: rgba(255, 255, 255, 0.85); }
body.app-shell .mz-rail-week-dot {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--mz-prediction-ink, #4C1D95);
}
body.app-shell .mz-rail-week-pred {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: none;
  color: var(--mz-prediction-ink, #4C1D95);
  max-width: none;
}
body.app-shell .mz-rail-week-day.is-expected {
  border-color: var(--mz-prediction, #4C1D95);
  box-shadow: inset 0 0 0 1px var(--mz-prediction, #4C1D95);
}
body.app-shell .mz-rail-week-pred { color: var(--mz-prediction-ink, #4C1D95); }
body.app-shell .mz-rail-week-day.is-active .mz-rail-week-dot,
body.app-shell .mz-rail-week-day.is-active .mz-rail-week-pred { color: #efe7ff; }
:root.dark body.app-shell .mz-prediction-bell,
body.app-shell.dark .mz-prediction-bell {
  background: var(--mz-prediction-soft, #2A2150);
  color: var(--mz-prediction-ink, #E4D4FF);
  border-color: var(--mz-prediction, #E4D4FF);
}
:root.dark body.app-shell .mz-predictions-panel .mz-predictions-title,
:root.dark body.app-shell .mz-prediction-score,
:root.dark body.app-shell .mz-prediction-chance-line,
body.app-shell.dark .mz-predictions-panel .mz-predictions-title,
body.app-shell.dark .mz-prediction-score,
body.app-shell.dark .mz-prediction-chance-line,
:root.dark body.app-shell .mz-rail-week-pred,
body.app-shell.dark .mz-rail-week-pred {
  color: var(--mz-prediction-ink, #E4D4FF);
}
:root.dark body.app-shell .mz-prediction-score.is-vivid,
:root.dark body.app-shell .mz-prediction-score.is-high,
body.app-shell.dark .mz-prediction-score.is-vivid,
body.app-shell.dark .mz-prediction-score.is-high { color: var(--mz-accent-bright, #FF8C33); }
:root.dark body.app-shell .mz-prediction-score.is-soft,
body.app-shell.dark .mz-prediction-score.is-soft { color: #FDBA74; }
:root.dark body.app-shell .mz-prediction-score.is-mid,
body.app-shell.dark .mz-prediction-score.is-mid { color: #fdba74; }
:root.dark body.app-shell .mz-prediction-score.is-low,
body.app-shell.dark .mz-prediction-score.is-low { color: #cbd5e1; }
body.app-shell .mz-rail-week-day:focus-visible,
body.app-shell .mz-rail-chip:focus-visible,
body.app-shell .mz-rail-opt:focus-visible,
body.app-shell .mz-rail-open:focus-visible {
  outline: var(--mz-focus);
  outline-offset: 2px;
}

/* ── Chips de scan ────────────────────────────────────────────────── */
body.app-shell .mz-rail-scan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 4px 0 10px;
}
body.app-shell .mz-rail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.app-shell .mz-rail-group-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mz-muted);
}
body.app-shell .mz-rail-filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
body.app-shell .mz-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mz-accent, #ff6a00);
  color: #161a22;
  font-size: 12px;
  font-weight: 800;
}
body.app-shell .mz-rail-chip {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--mz-border-strong);
  background: var(--mz-surface);
  color: var(--mz-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
body.app-shell .mz-rail-chip.is-on {
  background: var(--mz-ink);
  border-color: var(--mz-ink);
  color: var(--mz-on-night, #f4f6fa);
}
/* Sombre : --mz-ink et --mz-on-night sont tous les deux #F4F6FA. Encre nuit sur le fond clair. */
:root.dark body.app-shell .mz-rail-chip.is-on:not([data-mz-rail-chip="live"]):not([data-mz-rail-chip="predictions"]) {
  color: #0F172A;
}
/* Sections empilées : orange, et les deux peuvent être allumées ensemble. */
body.app-shell .mz-rail-chip[data-mz-rail-chip="live"].is-on,
body.app-shell .mz-rail-chip[data-mz-rail-chip="predictions"].is-on {
  background: var(--mz-accent, #ff6a00);
  border-color: var(--mz-accent, #ff6a00);
  color: #161a22;
}
body.app-shell .mz-results-pane-tab.is-active {
  background: var(--mz-accent, #ff6a00);
  border-color: var(--mz-accent, #ff6a00);
  color: var(--mz-on-accent, #161a22);
}
body.app-shell .mz-results-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
body.app-shell .mz-predictions-panel {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--mz-border);
  /* Au-dessus du bandeau de dates collé : il ne masque plus « Ouverture attendue ». */
  position: relative;
  z-index: 7;
  background: var(--mz-bg, #F7F8FA);
}
body.app-shell .mz-predictions-panel .mz-predictions-title {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mz-ink, #161A22);
}
body.app-shell .mz-predictions-panel .mz-predictions-lead {
  max-width: 62ch;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
}
body.app-shell .mz-rail-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

/* « Vérifier les places depuis SNCF » : bandeau sur la carte, pas un lien dans le détail. */
body.app-shell .mz-places-verify-row {
  display: block;
  width: 100%;
  margin: 2px 0 0;
}
body.app-shell .mz-places-verify-row .j-rel-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}
body.app-shell .mz-places-verify {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  height: auto;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--mz-ink, #0F172A);
  background: var(--mz-accent, #FF6A00);
  color: var(--mz-on-accent, #161A22);
  box-shadow: 0 2px 0 var(--mz-ink, #0F172A);
  text-align: left;
  white-space: normal;
  text-decoration: none;
}
body.app-shell .mz-places-verify:hover:not(:disabled) {
  background: var(--mz-accent-press, #E55F00);
  color: var(--mz-on-accent, #161A22);
  text-decoration: none;
}
body.app-shell .mz-places-verify:focus-visible {
  outline: 3px solid var(--mz-ink, #0F172A);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--mz-surface, #fff);
}
body.app-shell .mz-places-verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--mz-ink, #0F172A);
  color: var(--mz-surface, #fff);
}
body.app-shell .mz-places-verify-icon .svg-icon {
  width: 18px;
  height: 18px;
}
body.app-shell .mz-places-verify-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
body.app-shell .mz-places-verify-go {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
body.app-shell .mz-places-verify-label {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
body.app-shell .mz-places-verify-hint {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: inherit;
}
body.app-shell .mz-places-verify-row .mz-verify-progress {
  max-width: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid var(--mz-ink, #0F172A);
  border-radius: 12px;
  background: var(--mz-surface, #fff);
}
body.app-shell .mz-places-verify-row .mz-verify-progress-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--mz-ink, #0F172A);
}
body.app-shell .mz-verify-result {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 2px solid var(--mz-ink, #0F172A);
  border-radius: 12px;
  background: var(--mz-surface, #fff);
  color: var(--mz-ink, #0F172A);
}
body.app-shell .mz-verify-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.app-shell .mz-verify-result-line {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mz-ink, #0F172A);
}
body.app-shell .mz-verify-result .mz-sncf-outbound {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.app-shell .mz-verify-result .mz-btn {
  width: auto;
  max-width: 100%;
}
:root.dark body.app-shell .mz-verify-result {
  background: var(--mz-surface, #161A22);
  color: var(--mz-ink, #F4F6FA);
  border-color: var(--mz-ink, #F4F6FA);
}
:root.dark body.app-shell .mz-verify-result-line {
  color: var(--mz-ink, #F4F6FA);
  background: transparent;
}
@media (forced-colors: active) {
  body.app-shell .mz-places-verify {
    border: 2px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
    box-shadow: none;
  }
  body.app-shell .mz-places-verify-icon {
    background: ButtonText;
    color: ButtonFace;
    forced-color-adjust: none;
  }
}

/* ── Grille filtres + résultats ───────────────────────────────────── */
body.app-shell .mz-rail-workspace {
  display: block;
}
body.app-shell .mz-rail-head-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
body.app-shell .mz-rail-share {
  min-height: 44px;
  color: var(--mz-ink);
  background: var(--mz-surface);
  border-color: var(--mz-border-strong);
}
body.app-shell .mz-rail-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
body.app-shell .mz-rail-found {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
body.app-shell .mz-rail-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-muted);
}
body.app-shell .mz-rail-sort .mz-select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--mz-border-strong);
  background: var(--mz-surface);
  color: var(--mz-ink);
  font-weight: 700;
  padding: 0 10px;
}
body.app-shell .mz-rail-filters {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--mz-border);
  background: var(--mz-surface);
  box-shadow: var(--mz-shadow);
  overflow: visible;
}
body.app-shell .mz-results-column {
  min-width: 0;
  width: 100%;
}
body.app-shell .mz-filter-bar,
body.app-shell .mz-rail-filter-bar,
body.app-shell .mz-rail-workspace,
body.app-shell .mz-results-layout {
  overflow: visible;
}
body.app-shell .mz-filter-sheet[hidden] {
  display: none !important;
}
body.app-shell .mz-filter-count {
  display: none !important;
}
body.app-shell .mz-rail-field legend,
body.app-shell .mz-rail-check,
body.app-shell .mz-rail-opt {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
body.app-shell .mz-rail-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.app-shell .mz-rail-filters-head h2 {
  margin: 0;
  font-size: 16px;
}
body.app-shell .mz-rail-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.app-shell .mz-rail-field legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mz-muted);
  margin-bottom: 2px;
}
body.app-shell .mz-rail-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
body.app-shell .mz-rail-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--mz-accent, #ff6a00);
}
body.app-shell .mz-rail-opt-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.app-shell .mz-rail-opt {
  min-height: 44px;
  text-align: left;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mz-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
body.app-shell .mz-rail-opt.is-on {
  background: var(--mz-accent-soft);
  border-color: var(--mz-accent, #ff6a00);
  color: var(--mz-ink);
}
body.app-shell .mz-rail-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (min-width: 1280px) {
  body.app-shell .mz-rail-workspace {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }
  /* Sans colonne filtres, l’unique enfant occupait les 252 px et tassait les résultats. */
  body.app-shell .mz-rail-workspace:not(:has(.mz-rail-filters)):not(:has(.mz-filter-bar)) {
    grid-template-columns: minmax(0, 1fr);
  }
  html:has(body.app-shell.has-results),
  body.app-shell.has-results {
    --mz-results-sticky-top: 72px;
    --mz-topbar-offset: 72px;
  }
  body.app-shell.has-results .mz-topbar {
    box-sizing: border-box;
    height: var(--mz-results-sticky-top);
    min-height: var(--mz-results-sticky-top);
    max-height: var(--mz-results-sticky-top);
    padding-top: 0;
    padding-bottom: 0;
    z-index: 50;
  }
  /* Le document défile. body ne doit pas être un scrollport, sinon sticky ne colle pas. */
  body.app-shell.has-results {
    overflow: visible !important;
  }
  body.app-shell .mz-rail-filter-toolbar { display: none !important; }
  body.app-shell .mz-results-kind-meta .mz-filter-sheet-toggle { display: none !important; }
  body.app-shell .mz-rail-filters .mz-filter-sheet-close { display: none; }
  body.app-shell .mz-filter-bar,
  body.app-shell .mz-rail-filter-bar {
    align-self: stretch;
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    overflow: visible;
    width: 252px;
    min-width: 252px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  /* Colonne gauche : le volet commence sous le formulaire, puis colle sous le header. */
  body.app-shell .mz-rail-filters {
    position: sticky;
    top: calc(var(--mz-results-sticky-top, 72px) + 12px);
    z-index: 20;
    align-self: start;
    /* 12 px sous le header, 160 px réservés au pied : le volet ne les recouvre pas. */
    max-height: calc(100dvh - var(--mz-results-sticky-top, 72px) - 12px - 160px);
    overflow: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 252px;
    max-width: 252px;
    box-sizing: border-box;
  }
  /* Bande des jours dans la colonne résultats, même largeur, sans dalle décalée. */
  body.app-shell.has-results .mz-rail-week {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    background: transparent;
  }
  body.app-shell.has-results .mz-results-sticky-head {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--mz-bg, #faf5ef);
    background-image: none;
    padding-top: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mz-line, #e2e6eb);
    box-shadow: var(--mz-shadow-md, 0 4px 16px rgba(22, 26, 34, 0.08));
  }
  body.app-shell.has-results .mz-results-column {
    min-width: 0;
    width: 100%;
  }
  body.app-shell.has-results .mz-predictions-panel {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}
@media (min-width: 1440px) {
  body.app-shell.has-results .mz-predictions-panel {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
  body.app-shell.has-results .mz-rail-week {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  body.app-shell .mz-rail-workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  body.app-shell .mz-rail-filter-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }
  body.app-shell.has-results.filters-open .mz-rail-filters {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    position: fixed;
    z-index: 85;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(70vh, 640px);
    overflow: auto;
    box-shadow: var(--mz-shadow-lg, 0 16px 40px rgba(15, 23, 42, 0.22));
  }
}
@media (max-width: 1279px) {
  body.app-shell.has-results .mz-results-kind-meta .mz-filter-sheet-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--mz-border-strong);
    background: #fff;
    color: var(--mz-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  :root.dark body.app-shell.has-results .mz-results-kind-meta .mz-filter-sheet-toggle {
    background: var(--mz-surface);
  }
  body.app-shell.has-results .mz-filter-bar,
  body.app-shell.has-results .mz-rail-filter-bar {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 0;
  }
  body.app-shell.has-results:not(.filters-open) .mz-filter-bar,
  body.app-shell.has-results:not(.filters-open) .mz-rail-filter-bar {
    height: 0;
    overflow: hidden;
  }
}
/* Le fondu slideDown repart à chaque innerHTML : l’état vide restait délavé. */
body.app-shell.has-results .mz-rail-results {
  animation: none;
  opacity: 1;
}
@media (max-width: 1023px) {
  body.app-shell.has-results .mz-results-column {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  #toastContainer {
    bottom: calc(var(--mz-bottom-nav-h, 68px) + 16px + env(safe-area-inset-bottom, 0px));
  }
  body.has-cookie-banner #toastContainer,
  body.app-shell.has-cookie-banner #toastContainer {
    bottom: calc(var(--mz-bottom-nav-h, 68px) + 148px + env(safe-area-inset-bottom, 0px));
  }
  /* WebKit aligne le minimum visible sur le bord du viewport et ignore
     souvent scroll-margin : le centre de « Chercher » tombait sous la
     bottom nav (le clic ouvrait Alertes). scroll-padding + réserve
     en fin de formulaire laissent le bouton au-dessus de la barre. */
  html {
    scroll-padding-bottom: calc(var(--mz-bottom-nav-h, 68px) + 28px);
  }
  body.app-shell .sidebar,
  body.app-shell .sidebar-scroll,
  body.app-shell .layout.mz-app-frame {
    padding-bottom: calc(var(--mz-bottom-nav-h, 68px) + 36px);
  }
  #daySearchBtn {
    scroll-margin-bottom: calc(var(--mz-bottom-nav-h, 68px) + 28px);
  }
  body.app-shell .mz-rail-filter-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }
  body.app-shell .mz-rail-filter-toolbar .mz-filter-sheet-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--mz-border-strong);
    background: var(--mz-surface);
    color: var(--mz-ink);
    font-weight: 700;
    cursor: pointer;
  }
  body.app-shell.has-results:not(.filters-open) .mz-rail-filters[hidden] {
    display: none !important;
  }
  body.app-shell.has-results.filters-open .mz-rail-filters {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    position: fixed;
    z-index: 85;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    max-height: min(70vh, 640px);
    overflow: auto;
    box-shadow: var(--mz-shadow-lg);
  }
  body.app-shell .mz-rail-scan .mz-rail-chip:not([data-mz-rail-chip="live"]):not([data-mz-rail-chip="predictions"]) {
    display: none !important;
  }
  body.app-shell .mz-rail-results-head .mz-rail-sort {
    display: none !important;
  }
}

/* ── Cartes trajet : scan 5–7 lignes ──────────────────────────────── */
body.app-shell .journey-card.mz-rail-card {
  padding: 8px 12px 6px;
  margin-bottom: 8px;
  border-radius: 16px;
}
body.app-shell .mz-rail-card .j-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
}
body.app-shell .mz-rail-card .mz-rail-card-top,
body.app-shell .mz-rail-card .mz-rail-stations,
body.app-shell .mz-rail-card .mz-rail-timeline,
body.app-shell .mz-rail-card .mz-result-pills,
body.app-shell .mz-rail-card .mz-tight-connection,
body.app-shell .mz-rail-card .mz-station-distance {
  flex: 0 0 auto;
  width: 100%;
}
body.app-shell .mz-rail-card .j-opt-tag,
body.app-shell .mz-rail-card .j-tier-tag {
  display: none !important;
}
body.app-shell .mz-rail-card .j-shortest-tag,
body.app-shell .mz-rail-card .j-night-tag,
body.app-shell .mz-rail-card .j-ongoing-tag {
  display: inline-flex;
  align-items: center;
}
body.app-shell .mz-rail-card .mz-result-detail > summary {
  display: none !important;
}
body.app-shell .mz-rail-card details.mz-result-detail:not([open]) > :not(summary) {
  display: none !important;
}
body.app-shell .mz-rail-card .mz-result-pills,
body.app-shell .mz-rail-card .mz-rail-stations,
body.app-shell .mz-rail-card .mz-rail-timeline {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.25;
}
body.app-shell .mz-rail-card .j-places-slot,
body.app-shell .mz-rail-card .mz-result-pills {
  width: auto;
  flex: 0 1 auto;
}
body.app-shell .mz-rail-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
body.app-shell .mz-rail-times {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
body.app-shell .mz-rail-dur {
  font-size: 15px;
  font-weight: 700;
  color: var(--mz-muted);
}
body.app-shell .mz-tight-connection,
body.app-shell .mz-station-distance {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
body.app-shell .mz-tight-connection { color: #b45309; }
body.app-shell.has-results .journey-card .mz-sncf-note,
body.app-shell.has-results .j-booking .mz-sncf-note {
  display: block;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mz-muted);
}
body.app-shell .mz-sncf-legs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}
body.app-shell .mz-rail-card .j-dep,
body.app-shell .mz-rail-card .j-arr {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
body.app-shell .mz-rail-arrow {
  color: var(--mz-muted);
  font-weight: 700;
}
body.app-shell .mz-rail-price {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
body.app-shell .mz-rail-price.is-zero { color: var(--mz-success, #15803d); }
body.app-shell .mz-rail-price.is-none { color: var(--mz-muted); font-size: 18px; }
body.app-shell .mz-rail-stations {
  margin: 2px 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  font-size: 14px;
  font-weight: 700;
}
body.app-shell .mz-rail-card .mz-result-city {
  display: inline;
  font-size: 13px;
  font-weight: 600;
  color: var(--mz-muted);
}
body.app-shell .mz-rail-card .mz-result-pills { margin: 0 0 6px; }
body.app-shell .mz-place-max-full {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.app-shell .mz-place-max-badge {
  position: relative;
}
body.app-shell .mz-place-max-short {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
body.app-shell .mz-closed-chance {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-ink, inherit);
}
body.app-shell .mz-rail-card.is-closed .mz-place-max-short {
  letter-spacing: 0;
}
body.app-shell .mz-rail-card .mz-rail-open {
  align-self: flex-start;
  margin-top: 4px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}
body.app-shell .mz-rail-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--mz-border-strong);
  background: var(--mz-surface);
  color: var(--mz-ink);
  cursor: pointer;
  position: relative;
}
body.app-shell .mz-rail-alert-icon .svg-icon {
  width: 18px;
  height: 18px;
}
body.app-shell .mz-rail-alert-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.app-shell .mz-rail-alert-icon:hover .mz-rail-alert-label,
body.app-shell .mz-rail-alert-icon:focus-visible .mz-rail-alert-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  width: auto;
  height: auto;
  margin: 0;
  padding: 4px 8px;
  clip: auto;
  overflow: visible;
  white-space: nowrap;
  border-radius: 8px;
  background: var(--mz-ink);
  color: var(--mz-on-night, #f4f6fa);
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}
body.app-shell .mz-rail-timeline {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 13px;
  color: var(--mz-ink-2);
}
body.app-shell .mz-rail-tl-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--mz-electric, #3d5afe);
}
body.app-shell .mz-rail-tl-wait {
  color: var(--mz-muted);
  font-weight: 600;
}
body.app-shell .mz-rail-tl-line {
  width: 18px;
  height: 2px;
  background: var(--mz-border-strong);
  display: inline-block;
}
body.app-shell .mz-rail-card .mz-result-detail {
  margin-top: 8px;
}
/* 1280 : puces et « Voir le trajet » sur la même ligne, sans zone vide. */
@media (min-width: 1280px) {
  body.app-shell .mz-rail-card .j-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "top top"
      "stations stations"
      "distance distance"
      "pills actions"
      "badge badge"
      "verify verify"
      "timeline timeline"
      "tight tight";
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
  }
  body.app-shell .mz-rail-card .mz-rail-card-top { grid-area: top; width: auto; }
  body.app-shell .mz-rail-card .mz-rail-stations { grid-area: stations; width: auto; }
  body.app-shell .mz-rail-card .mz-station-distance { grid-area: distance; width: auto; }
  body.app-shell .mz-rail-card .mz-result-pills { grid-area: pills; width: auto; margin: 0; }
  body.app-shell .mz-rail-card .mz-rail-card-actions { grid-area: actions; margin: 0; justify-self: end; }
  body.app-shell .mz-rail-card .j-places-slot { grid-area: badge; width: auto; }
  body.app-shell .mz-rail-card .mz-places-verify-row { grid-area: verify; width: 100%; }
  body.app-shell .mz-rail-card .mz-rail-timeline { grid-area: timeline; width: auto; }
  body.app-shell .mz-rail-card .mz-tight-connection { grid-area: tight; width: auto; }
}
@media (max-width: 700px) {
  body.app-shell .mz-rail-card .j-leg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "times seg"
      "num places";
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
  }
  body.app-shell .mz-rail-card .j-leg-icon { display: none; }
  body.app-shell .mz-rail-card .j-leg-times {
    grid-area: times;
    min-width: 0;
  }
  body.app-shell .mz-rail-card .j-leg-info { display: contents; }
  body.app-shell .mz-rail-card .j-leg-seg {
    grid-area: seg;
    justify-self: end;
    text-align: right;
    min-width: 0;
  }
  body.app-shell .mz-rail-card .j-leg-num { grid-area: num; }
  body.app-shell .mz-rail-card .j-leg-places {
    grid-area: places;
    margin-left: 0;
    justify-self: end;
    white-space: nowrap;
  }
}
body.app-shell .mz-rail-card .mz-result-detail summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--mz-electric-text, #2a3fbf);
}
body.app-shell .mz-rail-card .j-booking {
  margin-top: 10px;
}

/* ── Prédictions : jamais le vert « place confirmée » ─────────────── */
body.app-shell .mz-prediction-card,
body.app-shell .journey-card.mz-result-card.mz-prediction-card {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: visible;
  padding: 16px;
  border-style: dashed !important;
  border-width: 1.5px !important;
  border-color: color-mix(in srgb, var(--mz-prediction, #4C1D95) 62%, var(--mz-border-strong, #cbd5e1)) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mz-prediction, #4C1D95) 10%, var(--mz-surface)) 0%, var(--mz-surface) 96px) !important;
}
:root.dark body.app-shell .mz-prediction-card,
:root.dark body.app-shell .journey-card.mz-result-card.mz-prediction-card,
body.app-shell.dark .mz-prediction-card,
body.app-shell.dark .journey-card.mz-result-card.mz-prediction-card {
  border-color: color-mix(in srgb, var(--mz-prediction, #E4D4FF) 55%, transparent) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--mz-prediction, #E4D4FF) 18%, var(--mz-surface)) 0%, var(--mz-surface) 96px) !important;
}
body.app-shell .mz-prediction-card .j-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding-right: 0;
}
body.app-shell .mz-prediction-mark {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mz-prediction-ink, #4C1D95);
}
body.app-shell .mz-prediction-card .mz-prediction-times {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}
body.app-shell .mz-prediction-card .mz-prediction-times .j-dep,
body.app-shell .mz-prediction-card .mz-prediction-times .j-arr {
  font-size: 28px;
}
body.app-shell .mz-prediction-card .mz-rail-dur {
  font-size: 16px;
  font-weight: 700;
  color: var(--mz-muted, #64748b);
}
body.app-shell .mz-prediction-card .mz-prediction-route,
body.app-shell .mz-prediction-card .mz-prediction-legs,
body.app-shell .mz-prediction-card .mz-prediction-day-probs,
body.app-shell .mz-prediction-train-meta,
body.app-shell .mz-prediction-status-line,
body.app-shell .mz-prediction-sentence,
body.app-shell .mz-prediction-via,
body.app-shell .mz-prediction-also {
  margin: 0;
  text-align: left;
}
body.app-shell .mz-prediction-also {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  color: #6d28d9;
}
body.app-shell .mz-prediction-train-meta {
  font-size: 15px;
  font-weight: 800;
}
body.app-shell .mz-prediction-status-line {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mz-muted, #64748b);
}
body.app-shell .mz-prediction-status-line .mz-prediction-confidence {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
}
body.app-shell .mz-prediction-sentence {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}
body.app-shell .mz-prediction-sentence .mz-prediction-score,
body.app-shell .mz-prediction-sentence .mz-prediction-score.is-locked {
  display: inline;
  font-size: 24px;
  line-height: 1;
  margin: 0 4px 0 0;
  font-variant-numeric: tabular-nums;
  filter: none;
  -webkit-filter: none;
  pointer-events: auto;
  user-select: auto;
}
body.app-shell .mz-prediction-when-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 12px;
  min-width: 5.6em;
  min-height: 1.4em;
  border-radius: 999px;
  border: 1px solid #4C1D95;
  background: #EDE7F6;
  vertical-align: middle;
  line-height: 1.2;
}
body.app-shell .mz-prediction-when-chip .mz-prediction-blur {
  color: #4C1D95;
  font-weight: 800;
  filter: blur(2px);
  -webkit-filter: blur(2px);
}
body.app-shell .mz-prediction-sentence .mz-slot-hint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mz-muted, #64748b);
  filter: none;
}
body.app-shell .mz-prediction-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
}
body.app-shell .mz-prediction-help {
  position: relative;
}
body.app-shell .mz-prediction-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--mz-border-strong);
  background: var(--mz-surface);
  color: var(--mz-ink);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
body.app-shell .mz-prediction-help-btn::-webkit-details-marker { display: none; }
body.app-shell .mz-prediction-help-body {
  position: absolute;
  z-index: 4;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: min(50vh, 280px);
  overflow: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--mz-surface);
  border: 1px solid var(--mz-border);
  box-shadow: var(--mz-shadow-lg);
}
/* Explication de la section : dans le flux, sur toute la largeur de la colonne. */
body.app-shell .mz-predictions-head {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 44px;
}
body.app-shell .mz-predictions-about {
  display: block;
  grid-column: 2;
  grid-row: 1;
  position: static;
  width: auto;
}
/* display sur <details> annule le masquage natif : le texte d’aide ne doit pas
   rester dans la colonne du bouton « ? ». */
body.app-shell details.mz-prediction-help:not([open]) > .mz-prediction-help-body,
body.app-shell details.mz-predictions-about:not([open]) > .mz-prediction-help-body {
  display: none;
}
body.app-shell .mz-predictions-about[open] {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: none;
}
body.app-shell .mz-predictions-about[open] > .mz-prediction-help-btn {
  position: absolute;
  top: 0;
  right: 0;
}
body.app-shell .mz-predictions-about .mz-prediction-help-body {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  max-height: none;
  overflow: visible;
  margin-top: 4px;
  box-shadow: none;
  box-sizing: border-box;
  z-index: auto;
}
/* La phrase courte reste sous le titre. Elle ne se répète pas sous le panneau ouvert. */
body.app-shell .mz-predictions:has(.mz-predictions-about[open]) > .mz-predictions-lead {
  display: none;
}
@media (max-width: 700px) {
  body.app-shell .mz-prediction-card .mz-prediction-times,
  body.app-shell .mz-prediction-card .mz-prediction-times .j-dep,
  body.app-shell .mz-prediction-card .mz-prediction-times .j-arr {
    font-size: 24px;
  }
  body.app-shell .mz-prediction-sentence .mz-prediction-score,
  body.app-shell .mz-prediction-sentence .mz-prediction-score.is-locked {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    margin: 0 0 4px;
  }
  body.app-shell .mz-prediction-sentence .mz-prediction-when {
    display: block;
    margin-top: 2px;
  }
  body.app-shell .mz-prediction-sentence .mz-prediction-when strong,
  body.app-shell .mz-prediction-sentence .mz-prediction-when-chip {
    display: inline-flex;
  }
  body.app-shell .mz-prediction-sentence .mz-prediction-when-sep {
    display: none;
  }
  body.app-shell .mz-prediction-card,
  body.app-shell .mz-prediction-card .j-summary,
  body.app-shell .mz-prediction-card .mz-prediction-sentence,
  body.app-shell .mz-prediction-card .mz-prediction-route,
  body.app-shell .mz-prediction-card .mz-prediction-actions,
  body.app-shell .mz-prediction-card .mz-prediction-legs,
  body.app-shell .mz-prediction-card .mz-prediction-leg,
  body.app-shell .mz-prediction-card .mz-prediction-day-probs,
  body.app-shell .mz-prediction-card .mz-prediction-day-probs-body,
  body.app-shell .mz-prediction-card .mz-prediction-open-day-list,
  body.app-shell .mz-prediction-card .mz-prediction-open-day {
    max-width: 100%;
    min-width: 0;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-day-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-day {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    column-gap: 8px;
    row-gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-when {
    flex: 1 1 auto;
    min-width: 8rem;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-side {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
    max-width: 100%;
    white-space: nowrap;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-pct,
  body.app-shell .mz-prediction-card .mz-prediction-open-n,
  body.app-shell .mz-prediction-card .mz-prediction-open-tag {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-bar {
    flex: 1 0 100%;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--mz-line, #e2e6eb);
    overflow: hidden;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--mz-accent, #ff6b00);
  }
  body.app-shell .mz-prediction-card .mz-prediction-leg {
    grid-template-columns: 3.1rem minmax(0, 1fr) 0.75rem 3.1rem minmax(0, 1fr);
  }
  body.app-shell .mz-prediction-card .mz-prediction-leg-train {
    grid-column: 1 / -1;
  }
}
body.app-shell .mz-prediction-score {
  color: var(--mz-muted, #64748b);
  font-weight: 800;
}
body.app-shell .mz-prediction-score.is-vivid,
body.app-shell .mz-prediction-score.is-high { color: var(--mz-accent, #FF6A00); }
body.app-shell .mz-prediction-score.is-mid { color: var(--mz-accent-text, #B34700); }
body.app-shell .mz-prediction-score.is-soft { color: #9A3412; }
body.app-shell .mz-prediction-score.is-low { color: var(--mz-muted, #64748b); }
body.app-shell .mz-prediction-score.is-band,
body.app-shell .mz-prediction-publish-clock,
body.app-shell .mz-prediction-release-day {
  color: var(--mz-prediction-ink, #4C1D95);
}
body.app-shell .mz-prediction-score.is-insufficient {
  color: var(--mz-ink, #202631);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
body.app-shell .mz-prediction-confidence.is-prominent {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 6px 0 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mz-accent-soft, #fff0e4);
  color: var(--mz-accent-text, #9e4100);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
body.app-shell .mz-prediction-honesty {
  margin: 4px 0 0;
  color: var(--mz-ink, #202631);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
body.app-shell .mz-empty[data-results-empty="none-zero"] .mz-empty-context {
  color: var(--mz-ink, #202631);
  font-size: 15px;
  font-weight: 700;
}
body.app-shell .mz-empty[data-results-empty="none-zero"] .mz-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
body.app-shell .mz-empty[data-results-empty="none-zero"] .empty-cta {
  min-height: 44px;
  flex: 1 1 160px;
}
:root.dark body.app-shell .mz-prediction-score.is-band,
body.app-shell.dark .mz-prediction-score.is-band,
:root.dark body.app-shell .mz-prediction-publish-clock,
body.app-shell.dark .mz-prediction-publish-clock,
:root.dark body.app-shell .mz-prediction-release-day,
body.app-shell.dark .mz-prediction-release-day {
  color: var(--mz-prediction-ink, #E4D4FF);
}
body.app-shell .mz-prediction-release-day {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
body.app-shell .mz-prediction-publish-clock {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
}
body.app-shell .mz-prediction-day-probs-title {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--mz-prediction-ink, #4C1D95);
}
:root.dark body.app-shell .mz-prediction-day-probs-title,
body.app-shell.dark .mz-prediction-day-probs-title {
  color: var(--mz-prediction-ink, #E4D4FF);
}
body.app-shell .mz-prediction-open-pct.is-missing {
  color: var(--mz-muted, #64748b);
  font-weight: 700;
}
body.app-shell .mz-prediction-chance-line {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-prediction-ink, #4C1D95);
}
body.app-shell .mz-prediction-bell {
  position: static;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--mz-prediction, #4C1D95);
  background: var(--mz-prediction-soft, #EDE4FF);
  color: var(--mz-prediction-ink, #4C1D95);
  cursor: pointer;
  flex: 0 0 auto;
}
body.app-shell .mz-prediction-bell .svg-icon {
  width: 18px;
  height: 18px;
}
body.app-shell .mz-prediction-bell-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
body.app-shell .mz-prediction-open-day.is-primary {
  background: transparent;
  border: 0;
  font-weight: 800;
}
body.app-shell .mz-prediction-day-probs-toggle {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-accent-text, #B34700);
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
body.app-shell .mz-prediction-day-probs-toggle::-webkit-details-marker { display: none; }
body.app-shell .mz-prediction-day-chevron {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
body.app-shell .mz-prediction-day-probs[open] .mz-prediction-day-chevron {
  margin-top: 2px;
  transform: rotate(45deg);
}
body.app-shell .mz-prediction-day-probs:not([open]) .mz-prediction-day-label.is-hide,
body.app-shell .mz-prediction-day-probs[open] .mz-prediction-day-label.is-show {
  display: none;
}
body.app-shell .mz-prediction-day-probs-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
body.app-shell .mz-prediction-open-pct.is-vivid,
body.app-shell .mz-prediction-open-pct.is-high { color: var(--mz-accent, #FF6A00); }
body.app-shell .mz-prediction-open-pct.is-mid { color: var(--mz-accent-text, #B34700); }
body.app-shell .mz-prediction-open-pct.is-soft { color: #9A3412; }
body.app-shell .mz-prediction-open-pct.is-low { color: var(--mz-muted, #64748b); }
body.app-shell .mz-prediction-open-n {
  color: var(--mz-muted, #64748b);
  font-weight: 600;
  white-space: nowrap;
  min-width: max-content;
}
body.app-shell .mz-prediction-open-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--mz-accent-text, #B34700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}
:root.dark body.app-shell .mz-prediction-open-tag,
body.app-shell.dark .mz-prediction-open-tag {
  background: rgba(255, 140, 51, 0.18);
  color: var(--mz-accent-bright, #FF8C33);
}
body.app-shell .mz-prediction-pro-link {
  align-self: flex-start;
  display: inline;
  width: auto;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mz-accent-text, #B34700);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
:root.dark body.app-shell .mz-prediction-pro-link,
body.app-shell.dark .mz-prediction-pro-link {
  color: var(--mz-accent-bright, #FF8C33);
}
@media (min-width: 701px) {
  body.app-shell .mz-prediction-card .mz-prediction-legs,
  body.app-shell .mz-prediction-card .mz-prediction-day-probs,
  body.app-shell .mz-prediction-card .mz-prediction-day-probs-body,
  body.app-shell .mz-prediction-card .mz-prediction-open-day-list {
    align-self: flex-start;
    width: max-content;
    max-width: min(520px, 100%);
  }
  body.app-shell .mz-prediction-card .mz-prediction-leg {
    grid-template-columns: 3.25rem max-content auto 3.25rem max-content max-content;
    width: max-content;
    max-width: 100%;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-day-list {
    display: grid;
    grid-template-columns: max-content max-content max-content max-content;
    max-width: 100%;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-day {
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: center;
    width: auto;
    max-width: none;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-side {
    display: contents;
  }
  body.app-shell .mz-prediction-card .mz-prediction-open-bar {
    display: none;
  }
}
:root.dark body.app-shell .mz-prediction-open-pct.is-vivid,
body.app-shell.dark .mz-prediction-open-pct.is-vivid { color: var(--mz-accent-bright, #FF8C33); }
:root.dark body.app-shell .mz-prediction-open-pct.is-mid,
body.app-shell.dark .mz-prediction-open-pct.is-mid { color: #fdba74; }
:root.dark body.app-shell .mz-prediction-open-pct.is-soft,
body.app-shell.dark .mz-prediction-open-pct.is-soft { color: #FDBA74; }
:root.dark body.app-shell .mz-prediction-open-pct.is-low,
body.app-shell.dark .mz-prediction-open-pct.is-low { color: #cbd5e1; }

/* ── Skeletons déjà dans le flux : densité carte ─────────────────── */
body.app-shell .mz-skeleton-card {
  height: 92px;
  border-radius: 16px;
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  /* Fermé tant que l’utilisateur n’a pas touché le bouton Filtres. Pas de sticky. */
  body.app-shell.has-results:not(.filters-open) .mz-rail-filters {
    display: none !important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    margin-left: 0;
    width: auto;
  }
  body.app-shell.tab-planner:not(.has-results) #sidebar.mz-search-hero {
    padding: 16px 12px 20px;
  }
  body.app-shell .mz-rail-hero-title { font-size: 1.45rem; }
  @media (max-width: 430px) {
  body.app-shell.tab-planner:not(.has-results) #sidebar.mz-search-hero {
    padding: 6px 12px 4px;
  }
  body.app-shell.tab-planner:not(.has-results) .mz-rail-hero-copy {
    margin: 0 auto 4px;
  }
  body.app-shell.tab-planner:not(.has-results) .mz-rail-hello { margin-bottom: 2px; }
  body.app-shell.tab-planner:not(.has-results) .mz-rail-hero-kicker { display: none; }
  body.app-shell.tab-planner:not(.has-results) .mz-rail-hero-title {
    font-size: 1.28rem;
    margin-bottom: 2px;
  }
  body.app-shell.tab-planner:not(.has-results) .mz-rail-hero-lead {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
  }
  body.app-shell.tab-planner:not(.has-results) .sidebar-block {
    padding: 8px 10px;
    margin-bottom: 6px;
  }
  body.app-shell.tab-planner:not(.has-results) #odEmptyHint,
  body.app-shell.tab-planner:not(.has-results) #productHint,
  body.app-shell.tab-planner:not(.has-results) #tripTypeHint {
    display: none;
  }
  body.app-shell.tab-planner:not(.has-results) #sidebarDock {
    padding: 0 10px 4px;
  }
}
  body.app-shell .mz-rail-card .j-dep,
  body.app-shell .mz-rail-card .j-arr,
  body.app-shell .mz-rail-price.is-zero {
    font-size: 18px;
  }
  body.app-shell .mz-rail-results-head {
    flex-wrap: wrap;
  }
  body.app-shell .mz-rail-found { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.app-shell .journey-card,
  body.app-shell .mz-rail-week-day,
  body.app-shell .mz-rail-chip {
    transition: none;
  }
}

.mz-indicatif-line,
.empty-indicatif {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mz-ink-soft, #4b5563);
}
.mz-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 4px 0 0;
}
.mz-empty-links .mz-btn-text,
.alert-recap-edit {
  min-height: 44px;
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--mz-link, #1d4e89);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
body.app-shell .mz-rail-week-price.is-empty {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 11ch;
  white-space: normal;
  text-align: center;
}
body.app-shell .mz-rail-found {
  min-width: 0;
  flex: 1 1 auto;
}
body.app-shell .mz-sticky-alert-cta.is-docked {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  margin: 0;
}
body.app-shell .mz-sticky-alert-cta[hidden] { display: none !important; }
@media (max-width: 900px) {
  body.app-shell .mz-sticky-alert-cta.is-docked {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}
.alert-recap-modal {
  width: min(440px, 100%);
  max-width: 440px;
}
.alert-recap-modal .modal-header {
  padding: 16px 14px 14px 20px;
  font-family: var(--mz-font-display, var(--mz-font));
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.alert-recap-modal .modal-header button {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--mz-muted);
}
.alert-recap-modal .modal-header button:hover {
  background: var(--mz-hover-tint);
  color: var(--mz-ink);
}
.alert-recap-modal .modal-header button:focus-visible {
  outline: var(--mz-focus);
  outline-offset: 2px;
}
.alert-recap-modal .modal-body {
  gap: 12px;
  padding: 16px 18px 12px;
}
.alert-recap-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.alert-recap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--mz-bg, #F7F8FA);
  border: 1px solid var(--mz-border);
}
.alert-recap-row--wide { grid-column: 1 / -1; }
.alert-recap-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mz-accent-soft);
  color: var(--mz-accent-text, #B34700);
}
.alert-recap-ico .svg-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.alert-recap-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.alert-recap-dl dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mz-muted);
}
.alert-recap-dl dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--mz-ink);
  overflow-wrap: break-word;
}
.alert-recap-row--wide dd { font-size: 17px; }
.alert-recap-lead,
.alert-recap-success {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--mz-ink);
}
.alert-recap-modal .alert-recap-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mz-muted);
}
.alert-recap-modal .alert-recap-edit {
  align-self: flex-start;
  min-height: 44px;
  margin: -4px 0 -6px;
  padding: 0 2px;
  color: var(--mz-accent-text, #B34700);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.alert-recap-modal .alert-recap-edit:hover {
  color: var(--mz-accent-press, #E55F00);
  text-decoration: underline;
}
.alert-recap-modal .modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  padding: 12px 16px 16px;
}
.alert-recap-modal .modal-footer .mz-btn { min-height: 44px; }
.alert-recap-modal .modal-footer .mz-btn-tertiary {
  padding-inline: 12px;
  color: var(--mz-ink-2);
  font-weight: 650;
}
.alert-recap-modal .modal-footer .mz-btn-primary {
  padding-inline: 18px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(22, 26, 34, 0.08);
}
.alert-recap-modal .modal-footer .mz-btn-primary:hover:not(:disabled) {
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.16);
}
.alert-recap-modal .modal-footer .mz-btn-primary:active:not(:disabled) {
  box-shadow: none;
}
:root.dark .alert-recap-row {
  background: rgba(244, 246, 250, 0.05);
  border-color: rgba(244, 246, 250, 0.12);
}
:root.dark .alert-recap-ico {
  background: rgba(255, 106, 0, 0.18);
  color: var(--mz-accent-text, #FFB787);
}

/* 0 € sur une partie du trajet — le vert est réservé au badge 0 € */
body.app-shell .mz-partial-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--mz-line, #e6e8ee);
}
body.app-shell .mz-partial-intro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 6px;
}
body.app-shell .mz-partial-section h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
body.app-shell .mz-partial-help {
  position: relative;
  flex: 0 0 auto;
}
body.app-shell .mz-partial-help > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--mz-border-strong, #d1d5db);
  background: var(--mz-surface, #fff);
  color: var(--mz-ink, #1f2933);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
body.app-shell .mz-partial-help > summary::-webkit-details-marker { display: none; }
body.app-shell .mz-partial-help > summary:focus-visible {
  outline: var(--mz-focus, 2px solid #1d4e89);
  outline-offset: 2px;
}
body.app-shell .mz-partial-help-panel {
  position: absolute;
  z-index: 5;
  top: 34px;
  left: 0;
  width: min(320px, 78vw);
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--mz-border, #e6e8ee);
  background: var(--mz-surface, #fff);
  color: var(--mz-ink, #1f2933);
  box-shadow: var(--mz-shadow, 0 8px 24px rgba(15, 23, 42, 0.12));
  font-size: 13px;
  line-height: 1.4;
}
body.app-shell .mz-partial-lead {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--mz-ink, #1f2933);
}
body.app-shell .mz-partial-card {
  padding: 14px 16px;
  margin-bottom: 10px;
}
body.app-shell .mz-partial-card .mz-rail-stations {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
}
body.app-shell .mz-partial-summary {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mz-ink, #1f2933);
}
body.app-shell .mz-partial-card .mz-result-pills {
  margin: 8px 0 0;
}
body.app-shell .mz-partial-legs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.app-shell .mz-partial-leg {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--mz-line, #e6e8ee);
}
body.app-shell .mz-partial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
body.app-shell .mz-partial-badge.is-zero {
  background: #15803d;
  color: #fff;
}
body.app-shell .mz-partial-badge.is-paid {
  background: #e7eaef;
  color: #1f2933;
}
body.app-shell .mz-partial-badge.is-held {
  background: #1d4e89;
  color: #fff;
}
body.app-shell .mz-held-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #1d4e89;
  font-weight: 700;
}
body.app-shell .mz-held-list-title {
  margin: 16px 0 8px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #1d4e89;
}
body.app-shell .mz-held-path {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.app-shell .mz-held-path-leg,
body.app-shell .mz-held-path-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
}
body.app-shell .mz-held-path-od {
  font-weight: 800;
}
body.app-shell .mz-held-path-times {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
body.app-shell .mz-held-path-link {
  font-size: 13px;
  font-weight: 700;
  color: #3d4d5c;
}
body.app-shell .mz-partial-leg-times {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body.app-shell .mz-partial-leg-od {
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
}
body.app-shell .mz-partial-train {
  justify-self: end;
  white-space: nowrap;
}
body.app-shell .mz-partial-conn {
  margin: 0;
  padding: 6px 0 6px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mz-muted, #5c6570);
}
body.app-shell .mz-partial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
}
body.app-shell .mz-partial-price-link {
  min-height: 40px;
  text-decoration: none;
}
body.app-shell .mz-prediction-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 4px 0 12px;
}
body.app-shell .mz-prediction-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
body.app-shell .mz-prediction-filters .mz-prediction-sort {
  margin: 0;
}
body.app-shell .mz-prediction-group {
  margin: 0 0 16px;
  padding: 0;
}
body.app-shell .mz-prediction-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 8px;
}
body.app-shell .mz-prediction-group-title,
body.app-shell .mz-prediction-group-meta,
body.app-shell .mz-prediction-group-when,
body.app-shell .mz-prediction-basis {
  margin: 0;
}
body.app-shell .mz-prediction-group-title {
  font-weight: 700;
}
body.app-shell .mz-prediction-group-meta,
body.app-shell .mz-prediction-group-when,
body.app-shell .mz-prediction-basis {
  color: var(--mz-muted, #5c6570);
  font-size: 13px;
}
body.app-shell .mz-prediction-group-when {
  margin: 0 0 4px;
}
body.app-shell .mz-prediction-basis {
  margin: 4px 0 0;
}
body.app-shell .mz-prediction-sort .mz-rail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
body.app-shell .mz-prediction-sort .mz-rail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 480px) {
  body.app-shell .mz-prediction-sort .mz-rail-chips {
    flex: 1 1 100%;
  }
  body.app-shell .mz-prediction-sort .mz-rail-chip {
    flex: 1 1 calc(50% - 6px);
  }
}
@media (max-width: 720px) {
  body.app-shell .mz-partial-leg {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }
  body.app-shell .mz-partial-leg-od {
    grid-column: 2 / -1;
  }
  body.app-shell .mz-partial-card {
    padding: 12px;
  }
  body.app-shell .mz-partial-section h2 {
    font-size: 16px;
  }
}

body.app-shell .mz-rail-card-actions .mz-rail-open { margin-top: 0; align-self: center; }
body.app-shell .mz-save-trip {
  flex: 0 1 auto;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  color: #9a3412;
  border: 1.5px solid var(--mz-accent, #ff6a00);
  border-radius: 999px;
}
body.app-shell .mz-save-trip.is-saved {
  background: transparent;
  color: var(--mz-ink, #161a22);
  border-color: var(--mz-accent, #ff6a00);
}
body.app-shell .mz-held-from-search {
  flex: 0 1 auto;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  color: var(--mz-ink, #161a22);
  border: 1.5px solid var(--mz-border-strong, #c5ced8);
  border-radius: 999px;
}
body.app-shell .mz-held-from-search.is-held {
  color: #9a3412;
  border-color: var(--mz-accent, #ff6a00);
}
.mz-trip-cols { display: flex; flex-direction: column; gap: 22px; }
.mz-trip-cols h3 { margin: 0 0 8px; font-size: 1.05rem; }
.mz-trip-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 980px) {
  .mz-trip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mz-trip-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.mz-trip-item {
  border: 1px solid var(--mz-border, #d7dee8);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0;
  background: var(--mz-surface, #fff);
}
.mz-trip-item.is-focus { outline: 2px solid #1f6feb; }
.mz-trip-item.is-past { opacity: 0.62; }
.mz-trip-item .j-dep,
.mz-trip-item .j-arr {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mz-trip-date { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--mz-muted, #5c6b7a); }
.mz-trip-od { margin: 4px 0; font-weight: 700; }
.mz-trip-legs { display: grid; gap: 6px; margin: 8px 0 0; }
.mz-trip-leg {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.mz-trip-reminder { margin: 8px 0 0; font-size: 13px; font-weight: 600; }
.mz-confirm { display: grid; gap: 8px; margin-top: 8px; }
.mz-confirm-status { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.mz-confirm-status.is-waiting,
.mz-confirm-status.is-due { color: var(--mz-warning, #F59E0B); }
.mz-confirm-status.is-confirmed { color: var(--mz-success, #16A36A); }
.mz-confirm-status.is-overdue { color: var(--mz-danger, #DC3C4D); }
.mz-confirm-status.is-past { color: var(--mz-muted, #5C6575); }
.mz-confirm-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-confirm-choice .mz-btn.is-on {
  border-color: var(--mz-accent, #FF6A00);
  background: var(--mz-accent-soft, rgba(255, 106, 0, 0.12));
  color: var(--mz-ink, #161A22);
}
.mz-trip-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.mz-trip-actions .mz-trip-confirm { flex: 0 1 auto; min-height: 44px; }
.mz-trip-remove {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: var(--mz-muted, #5c6b7a);
}
.mz-empty .mz-trip-empty-em {
  display: inline;
  font-weight: 800;
  font-size: inherit;
  color: var(--mz-ink, #161a22);
}

/* Fond page résultats : sable de la charte, comme la recherche.
   Pas de photo collée à l’écran : la gare ne suit pas le défilement.
   Le vert reste réservé au « 0 € ». Le violet reste le style Prédiction. */
html:has(body.app-shell.has-results) {
  background-color: #faf5ef;
  background-image: none;
}
body.app-shell.has-results {
  --mz-bg: #faf5ef;
  background-color: #faf5ef;
  background-image: none;
  background-attachment: scroll;
}
:root.dark:has(body.app-shell.has-results) {
  --mz-bg: #120E0C;
  --bg: #120E0C;
  --mz-surface: #1C1814;
  --mz-paper: #120E0C;
  --card: #1C1814;
  background-color: #120E0C !important;
  background-image: linear-gradient(180deg, #4A2810 0px, #120E0C 170px) !important;
}
:root.dark body.app-shell.has-results {
  --mz-bg: #120E0C;
  --bg: #120E0C;
  --mz-surface: #1C1814;
  --mz-paper: #120E0C;
  --card: #1C1814;
  background-color: #120E0C !important;
  background-image: none !important;
  background-attachment: scroll !important;
}
:root.dark body.app-shell.has-results .main,
:root.dark body.app-shell.has-results #mainContent {
  background-color: transparent;
  background-image: radial-gradient(ellipse 80% 42% at 50% -8%, rgba(255, 106, 0, 0.22), transparent 58%);
}
body.app-shell.has-results .main,
body.app-shell.has-results #mainContent,
body.app-shell.has-results .mz-results-column {
  background-color: #faf5ef;
}
body.app-shell.has-results .mz-topbar {
  background-color: transparent;
  background-image: none;
  border-bottom-color: transparent;
}
body.app-shell.has-results .mz-topbar.is-scrolled {
  background-color: rgba(255, 228, 206, 0.94);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 106, 0, 0.38), 0 10px 24px rgba(90, 36, 0, 0.12);
}
:root.dark body.app-shell.has-results .mz-topbar {
  background-color: #120E0C;
}
:root.dark body.app-shell.has-results .mz-topbar.is-scrolled {
  background-color: rgba(18, 14, 12, 0.94);
  box-shadow: 0 1px 0 rgba(255, 106, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.45);
}
body.app-shell.has-results .mz-top-nav.main-tabs {
  background: var(--mz-surface);
}
/* La carte de recherche reste blanche une fois les résultats affichés. */
body.app-shell.has-results #sidebar.mz-search-hero {
  background-color: #fff;
  background-image: none;
}
:root:not(.dark) body.app-shell.has-results .mz-od-bar .place-search-field,
:root:not(.dark) body.app-shell.has-results .mz-od-bar .date-preset-btn,
:root:not(.dark) body.app-shell.has-results .mz-od-bar .product-btn:not(.active),
:root:not(.dark) body.app-shell.has-results .mz-od-bar .trip-type-btn:not(.active),
:root:not(.dark) body.app-shell.has-results .journey-card,
:root:not(.dark) body.app-shell.has-results .mz-rail-filters,
:root:not(.dark) body.app-shell.has-results .mz-kind-tabs,
:root:not(.dark) body.app-shell.has-results .mz-empty,
:root:not(.dark) body.app-shell.has-results .mz-rail-week-day:not(.is-active) {
  background-color: #fff !important;
}
body.app-shell.has-results .journey-empty-done,
body.app-shell.has-results .mz-empty {
  background: var(--mz-surface);
}
body.app-shell.has-results .mz-od-bar,
body.app-shell.has-results .mz-rail-filters,
body.app-shell.has-results .mz-empty,
body.app-shell.has-results .journey-card,
body.app-shell.has-results .mz-rail-week-day:not(.is-active) {
  box-shadow: 0 1px 2px rgba(90, 36, 0, 0.05), 0 8px 22px rgba(90, 36, 0, 0.06);
}
:root.dark body.app-shell.has-results .mz-od-bar,
:root.dark body.app-shell.has-results .mz-rail-filters,
:root.dark body.app-shell.has-results .mz-empty,
:root.dark body.app-shell.has-results .journey-card,
:root.dark body.app-shell.has-results .mz-rail-week-day:not(.is-active) {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.mz-empty .mz-btn-primary { margin-top: 4px; }
.mz-trip-none { margin: 0; color: var(--mz-muted, #5c6b7a); }
@media (max-width: 700px) {
  .mz-trip-item .j-dep,
  .mz-trip-item .j-arr { font-size: 18px; }
  body.app-shell .mz-save-trip,
  body.app-shell .mz-held-from-search { padding: 0 10px; font-size: 12px; }
  body.app-shell.has-results,
  :root.dark body.app-shell.has-results {
    background-color: #faf5ef;
    background-image: none;
    background-attachment: scroll;
  }
  :root.dark body.app-shell.has-results {
    background-color: #120E0C;
  }
}

/* .main est en scroll-behavior:smooth. Un scrollTop animé après un
   changement d’onglet fait annuler le clic suivant par WebKit. */
body.app-shell,
body.app-shell #mainContent {
  scroll-behavior: auto;
}
body.app-shell .mz-kind-tabs {
  display: flex;
  gap: 6px;
  margin: 8px 0 4px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--mz-border, #ead3c0);
}
body.app-shell .mz-kind-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #161a22;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
body.app-shell .mz-kind-tab.is-on {
  background: #FF6A00;
  color: #161a22;
}
body.app-shell .mz-kind-tab.is-pred.is-on {
  background: #4C1D95;
  color: #fff;
}
body.app-shell .mz-kind-tab-label {
  display: block;
  max-width: 100%;
  text-wrap: wrap;
  overflow-wrap: break-word;
}
body.app-shell .mz-kind-count {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body.app-shell .mz-results-kind-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 2px 0 8px;
}
body.app-shell .mz-indicatif-line {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #5B6578;
}
body.app-shell .mz-results-kind-meta .mz-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
body.app-shell.has-results .mz-results-sticky-head {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--mz-ground, var(--mz-bg, #faf5ef));
  background-image: none;
  border-bottom: 1px solid var(--mz-line, #e2e6eb);
  box-shadow: var(--mz-shadow-md, 0 4px 16px rgba(22, 26, 34, 0.08));
}
body.app-shell.has-results .mz-results-panel,
body.app-shell.has-results .journey-card,
body.app-shell.has-results .mz-prediction-card,
body.app-shell.has-results #mzEmptySoft {
  scroll-margin-top: 240px;
}
body.app-shell .mz-results-column .mz-predictions-panel,
body.app-shell .mz-results-column .mz-results-panel {
  z-index: 1;
}
body.app-shell .mz-results-column .mz-predictions-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  background: transparent;
}
body.app-shell.has-results .mz-results-days {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
:root.dark body.app-shell .mz-kind-tabs {
  background: #1C1814;
  border-color: #3a3128;
}
:root.dark body.app-shell .mz-kind-tab { color: #f4efe9; }
:root.dark body.app-shell .mz-kind-tab.is-on { color: #161a22; }
:root.dark body.app-shell .mz-kind-tab.is-pred.is-on { color: #fff; }
:root.dark body.app-shell .mz-indicatif-line { color: #c8beb4; }
:root.dark body.app-shell.has-results .mz-results-sticky-head {
  background: #120E0C;
  background-color: #120E0C;
  background-image: none;
  border-bottom-color: #3a3128;
}

body.app-shell .usual-trip-host { margin: 0 0 12px; }
body.app-shell .usual-trip-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--mz-border, var(--border, #e6e1d8));
  border-radius: 16px;
  background: var(--mz-surface, #fff);
}
body.app-shell .usual-trip-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--mz-muted, #64748b);
}
body.app-shell .usual-trip-line {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}
body.app-shell .usual-trip-go {
  align-self: flex-start;
  min-height: 44px;
}
body.app-shell #alertOfferWeekly {
  min-height: 44px;
  margin: 4px 8px 4px 0;
}
body.app-shell .alert-preset-note {
  display: inline;
  font-size: 13px;
}
body.app-shell .mz-max-conn {
  margin-top: 18px;
}
body.app-shell .mz-max-conn-source {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mz-ink-soft, #52606d);
}
body.app-shell .mz-max-conn-list {
  display: grid;
  gap: 12px;
}
@media (max-width: 720px) {
  body.app-shell .mz-max-conn .mz-partial-lead,
  body.app-shell .mz-max-conn-source {
    font-size: 14px;
  }
}
