.route-flow,
.route-results {
  max-width: 1240px;
  margin: 20px auto;
  padding: 22px;
  border-radius: 18px;
  background: #202020;
  color: #eee;
}
.route-flow {
  border: 3px solid #ffcd0a;
  background: #202020 url("/couverture.jpg") right top/210px auto no-repeat;
  background-blend-mode: soft-light;
}
.route-flow h2 {
  background: #2c2c2c;
  padding: 12px;
  border-radius: 12px;
  margin: 8px 0;
}
.route-eyebrow {
  color: #6eeb83 !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.route-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.route-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.route-flow p {
  color: #c8d3cc;
  line-height: 1.6;
}
.route-flow [hidden],
.route-results [hidden] {
  display: none !important;
}
.route-button {
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #ffcd0a;
  border-radius: 12px;
  background: #2c2c2c;
  color: #ffcd0a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.route-button:disabled {
  opacity: 0.45;
  cursor: default;
}
#routeNext,
#routeSave,
#routeQuickSave {
  background: #ffcd0a;
  color: #151515;
}
#routeDelete {
  border-color: #687367;
  color: #ddd;
}
#routeError {
  color: #ffcd0a;
}
.route-flow input:not([type="file"]),
.route-flow select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #596858;
  border-radius: 10px;
  background: #171b18;
  color: #eee;
  font: inherit;
}
.route-flow label {
  display: block;
  margin-bottom: 6px;
}
.route-flow button:focus-visible,
.route-flow input:focus-visible,
.route-flow select:focus-visible,
.route-flow summary:focus-visible {
  outline: 2px solid #6eeb83;
  outline-offset: 3px;
}
.route-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  gap: 8px;
}
.route-progress li {
  padding: 10px;
  border: 1px solid #555;
  border-radius: 10px;
  color: #bcc6be;
  font-size: 0.85rem;
}
.route-progress [aria-current="step"] {
  border-color: #6eeb83;
  color: #6eeb83;
  background: #25342a;
}
.route-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 14px 0;
}
.route-panel > details,
.route-panel > .card,
.route-panel > p {
  grid-column: 1/-1;
}
.route-flow details,
.route-results details {
  padding: 14px;
  border: 1px solid #596858;
  border-radius: 12px;
  background: #252b27;
  margin-top: 12px;
}
.route-flow summary,
.route-results summary {
  cursor: pointer;
  font-weight: 700;
  color: #b9d9b8;
  min-height: 28px;
}
.route-panel details > div {
  margin-top: 14px;
}
#routeFooter {
  padding: 16px 0;
}
#routeLibraryControls {
  margin-top: 14px;
}
#routeLibraryControls select {
  max-width: 380px;
}
.route-note {
  padding: 14px;
  border-left: 3px solid #ffcd0a;
  background: #2c302a;
  border-radius: 10px;
}
.route-results .stat-card {
  border: 1px solid #596858;
  background: #252b27 !important;
}
.route-results .card {
  background: #242924 !important;
  border-radius: 12px;
}
.route-results #map {
  height: 380px;
  min-height: 280px;
  border-radius: 12px;
  margin-top: 16px;
}
.route-results .stage-table-wrap {
  max-width: 100%;
  overflow: auto;
}
.route-results #analysisList {
  min-width: 0;
}
.route-flow .card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.route-flow .stage-table-wrap {
  overflow: auto;
  max-width: 100%;
}
@media (max-width: 700px) {
  .route-flow,
  .route-results {
    padding: 16px;
    margin: 16px 0;
  }
  .route-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .route-panel {
    grid-template-columns: 1fr;
  }
  .route-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-results #map {
    height: 300px;
  }
  .route-actions {
    align-items: stretch;
  }
  .route-actions .route-button {
    flex: 1 1 auto;
  }
  #routeLibraryControls select {
    max-width: none;
  }
  .route-results .stat-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-results .item {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.route-time-choice {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #686047;
  border-radius: 14px;
  background: rgba(26, 28, 25, 0.94);
}
.route-time-choice > p,
.route-time-choice details > p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c5c9c3;
}
.route-time-choice summary {
  cursor: pointer;
  color: #ffcd0a;
  font-weight: 700;
  margin: 14px 0;
}
.route-estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.route-estimate-fields label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #c5c9c3;
}
.route-estimate-fields label:last-child {
  grid-column: 1/-1;
}
.route-estimate-fields :is(input, select) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #292b28;
  color: #eee;
  border: 1px solid #62655c;
  border-radius: 9px;
  padding: 10px;
}
@media (max-width: 600px) {
  .route-estimate-fields {
    grid-template-columns: 1fr;
  }
  .route-time-choice .route-button {
    width: 100%;
  }
}
