/* Buy a Car: compact decision controls and vehicle option headers. */
.scenario-buy-car .scenario-model-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}

.scenario-buy-car .scenario-model-tools > span {
  flex: 0 0 auto;
}

.scenario-buy-car .scenario-model-tools > b {
  font: 600 15px Georgia, serif;
  white-space: nowrap;
}

.scenario-buy-car .scenario-model-tools > .scenario-horizon-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 0 0 auto;
}

.scenario-buy-car .scenario-horizon-buttons button {
  min-height: 32px;
  padding: 6px 9px;
}

@media (min-width: 651px) {
  .scenario-stream.vehicle-option > header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end !important;
    gap: 8px 12px !important;
    padding: 10px 14px !important;
  }

  .scenario-stream.vehicle-option > header > div:first-child {
    min-width: 0 !important;
  }

  .scenario-stream.vehicle-option .scenario-stream-name-field {
    max-width: none;
  }

  .scenario-stream.vehicle-option .scenario-stream-name-field input {
    min-height: 38px !important;
    font-size: 18px !important;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions {
    display: flex !important;
    width: auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    padding-bottom: 1px;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions > label,
  .scenario-stream.vehicle-option .scenario-stream-actions > button {
    width: auto !important;
    min-height: 34px;
    margin: 0;
    white-space: nowrap;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions > label {
    padding: 6px 8px;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions > button {
    padding: 6px 9px !important;
  }
}

@media (max-width: 760px) {
  .scenario-buy-car .scenario-model-tools {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 8px;
  }

  .scenario-buy-car .scenario-model-tools > b {
    white-space: normal;
  }

  .scenario-buy-car .scenario-model-tools > .scenario-horizon-buttons {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
  }

  .scenario-buy-car .scenario-horizon-buttons button {
    flex: 1;
  }
}

@media (max-width: 650px) {
  .scenario-stream.vehicle-option > header {
    gap: 8px !important;
    padding: 10px 11px !important;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    width: 100% !important;
    gap: 6px !important;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions > label {
    justify-content: center;
    padding: 6px 8px;
  }

  .scenario-stream.vehicle-option .scenario-stream-actions > button {
    width: auto !important;
    padding: 6px 8px !important;
  }
}

.vehicle-evidence-panel {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 12px 14px;
  border: 1px solid #bfd5e2;
  border-radius: 10px;
  background: #f5fafc;
}

.vehicle-evidence-panel > div,
.vehicle-evidence-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-evidence-panel b,
.vehicle-evidence-panel span,
.vehicle-evidence-panel small { display: block; }
.vehicle-evidence-panel header > div:first-child { min-width: 0; }
.vehicle-evidence-panel header > div:first-child span,
.vehicle-evidence-panel > div > span { color: var(--muted); margin-top: 2px; }

.vehicle-evidence-counts {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.vehicle-evidence-counts span {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.vehicle-evidence-counts .trusted { color: #126946; background: #dff5eb; }
.vehicle-evidence-counts .verify { color: #885800; background: #fff1c9; }
.vehicle-evidence-counts .red-flag { color: #9a2f27; background: #fde3df; }
.vehicle-evidence-panel details { border-top: 1px solid #d6e4eb; padding-top: 8px; }
.vehicle-evidence-panel summary { cursor: pointer; font-weight: 700; color: #175e83; }
.vehicle-evidence-review { display: grid; gap: 7px; margin-top: 8px; }

.vehicle-evidence-review article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-left: 4px solid #d19b25;
  border-radius: 7px;
  background: white;
}

.vehicle-evidence-review article.red_flag { border-left-color: #b83c31; }
.vehicle-evidence-review article > div { min-width: 0; }
.vehicle-evidence-review article > div > span { color: #9b6500; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.vehicle-evidence-review article.red_flag > div > span { color: #a8342b; }
.vehicle-evidence-review article strong { margin: 2px 0; }
.vehicle-evidence-review article small { color: var(--muted); overflow-wrap: anywhere; }
.vehicle-evidence-review article button { white-space: nowrap; }

@media (max-width: 650px) {
  .vehicle-evidence-panel header,
  .vehicle-evidence-panel > div { align-items: flex-start; flex-direction: column; }
  .vehicle-evidence-counts { flex-wrap: wrap; }
  .vehicle-evidence-review article { grid-template-columns: 1fr; }
  .vehicle-evidence-review article button { width: 100%; }
}
