/* Compact cards retain the same reading order inside mobile and desktop panes. */
.assistant-route-list:has(.route-plan-card) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  align-items: stretch;
}
.route-plan-pair { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.assistant-route-card.route-plan-card {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  column-gap: 15px;
  container-type: inline-size;
  gap: 0;
  min-width: 0;
  padding: 20px;
  border: 0;
  border-radius: 22px;
  background: #f6f6f4;
  color: #181818;
  box-shadow: none;
  text-align: left;
  font: inherit;
  overflow-wrap: anywhere;
  cursor: auto;
  transition: none;
}
.route-plan-photo { grid-column: 1; grid-row: 1 / span 4; width: 100%; height: 132px; border-radius: 14px; object-fit: cover; background: #e7efe2; }
.route-plan-recommendation, .route-plan-heading, .route-plan-reason { grid-column: 2; }
.route-plan-metrics, .route-plan-details, .route-plan-source, .route-plan-actions { grid-column: 1 / -1; }
.route-plan-metrics { margin-top: 12px; }
.assistant-route-card.route-plan-card.selected { background: #f0f5df; box-shadow: none; }
.route-plan-recommendation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.route-plan-label { color: #344b2c; font-size: 13px; font-weight: 700; }
.route-plan-number { color: #696963; font-size: 12px; }
.route-plan-heading { display: grid; gap: 6px; }
.route-plan-card .route-plan-title { color: #181818; font-size: 18px; font-weight: 700; line-height: 1.4; }
.route-plan-location { color: #696963; font-size: 13px; line-height: 1.5; }
.route-plan-card .route-plan-reason { margin: 12px 0 18px; color: #51514c; font-size: 14px; line-height: 1.65; }
.route-plan-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.route-plan-metric { display: grid; align-content: start; gap: 6px; }
.route-plan-card .route-plan-metric strong { color: #181818; font-size: 16px; line-height: 1.4; font-weight: 650; font-variant-numeric: tabular-nums; }
.route-plan-metric small { color: #696963; font-size: 12px; line-height: 1.5; }
.route-plan-details { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid #e1e1dc; }
.route-plan-detail { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.6; }
.route-plan-detail-label { color: #696963; }
.route-plan-detail-value { color: #3e3e39; }
.route-plan-source { display: block; padding: 18px 0 14px; color: #696963; font-size: 12px; line-height: 1.6; }
.route-plan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.route-plan-pair .route-plan-action {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0;
  height: 48px; min-height: 48px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px;
  background: var(--brand-white, #fff); color: var(--brand-ink, #20251f); box-shadow: none;
  font-size: 15px; font-weight: 600; line-height: 22px; white-space: nowrap;
}
.route-plan-pair .route-plan-action-primary { background: var(--brand-ink, #20251f); color: var(--brand-white, #fff); }
.route-plan-pair .route-plan-action:focus-visible { outline: 2px solid var(--brand-ink, #20251f); outline-offset: 3px; }
.route-plan-pair .route-plan-action:disabled { cursor: wait; opacity: .5; }
.route-plan-pair .route-companion-card {
  min-width: 0; margin: 0; padding: 20px; border: 0; border-radius: 20px;
  background: var(--brand-surface, #f4f6f3); color: var(--brand-ink, #20251f); box-shadow: none;
}
.route-companion-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 26px; }
.route-companion-description { margin: 6px 0 0; color: var(--brand-muted-on-surface, #626c5c); font-size: 14px; line-height: 24px; }
/* A follow-up answer is a compact native action row in the Agent stream.
   Equal fluid columns remain touchable in the narrowest message body. */
.route-mode-choices {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; width: 100%; min-width: 0; margin-top: 12px;
}
.route-mode-choices .route-mode-choice {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-width: 44px; min-height: 48px; margin: 0; padding: 10px 8px;
  border: 0; border-radius: 999px; background: var(--brand-surface, #f4f6f3);
  color: var(--brand-ink, #20251f); box-shadow: none;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 22px;
  white-space: nowrap; cursor: pointer; touch-action: manipulation;
}
.route-mode-choices .route-mode-primary { background: var(--brand-ink, #20251f); color: var(--brand-white, #fff); }
.route-mode-choices .route-mode-choice[aria-pressed="true"] { background: var(--brand-green, #d5fa44); color: var(--brand-ink, #20251f); }
.route-mode-choices .route-mode-choice:focus-visible { outline: 2px solid var(--brand-ink, #20251f); outline-offset: 3px; }
.route-mode-choices .route-mode-choice:disabled { cursor: default; }
.route-mode-choices .route-mode-choice[aria-busy="true"] { opacity: .6; cursor: wait; }
@media (hover: hover) {
  .assistant-route-card.route-plan-card:hover { background: var(--brand-surface, #f4f6f3); border: 0; transform: none; box-shadow: none; }
  .route-plan-pair .route-plan-action:not(:disabled):hover { background: #e9eee5; }
  .route-plan-pair .route-plan-action-primary:not(:disabled):hover { background: #354131; }
  .route-mode-choices .route-mode-choice:not(:disabled):hover { background: #e9eee5; }
  .route-mode-choices .route-mode-primary:not(:disabled):hover { background: #354131; }
}
@container (max-width: 240px) {
  .route-plan-metrics { gap: 8px; }
  .route-plan-card .route-plan-metric strong { font-size: 14px; }
  .route-plan-detail { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-route-card.route-plan-card { transition: none; }
}
.assistant-team-filters > summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--ink, #20251f);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
}
.assistant-team-panel .assistant-team-preference select {
  flex: none;
  height: 48px;
}
