.ai-route-dialog { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 12px; padding: 22px; width: 480px; max-width: 100%; max-height: 88vh; overflow-y: auto; color: var(--text-main); }
.ai-route-dialog.is-wide { width: 900px; }
.ai-route-dialog h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.ai-route-note { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 10px 0 14px; }
.ai-route-option { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid var(--border-card); border-radius: 8px; margin: 8px 0; cursor: pointer; font-size: 12px; }
.ai-route-option input { margin-top: 3px; }
.ai-route-option small, .ai-route-table small { display: block; font-size: 11px; line-height: 1.5; color: var(--text-muted); margin-top: 3px; }
.ai-route-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.ai-route-actions button { padding: 8px 12px; font-size: 12px; justify-content: center; }
.ai-route-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; margin-bottom: 14px; }
.ai-route-metrics > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-card); padding: 7px 0; font-size: 12px; }
.ai-route-metrics span { color: var(--text-muted); }
.ai-route-search { width: 100%; font-size: 12px; padding: 8px 10px; margin-bottom: 10px; }
.ai-route-table { max-height: 320px; overflow: auto; border: 1px solid var(--border-card); border-radius: 8px; }
.ai-route-table table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.ai-route-table th { position: sticky; top: 0; background: var(--bg-card); font-weight: 700; white-space: nowrap; }
.ai-route-table td, .ai-route-table th { padding: 9px; border-bottom: 1px solid var(--border-card); vertical-align: top; }
.ai-route-warnings { margin-top: 14px; font-size: 12px; }
.ai-route-warnings summary { cursor: pointer; color: var(--text-muted); }
.ai-route-manual { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin-top: 12px; max-height: 220px; overflow-y: auto; }
.ai-route-manual p { padding: 8px 0; border-bottom: 1px solid var(--border-card); margin: 0; }
.ai-route-report { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 11px; text-decoration: underline; }
#blocoAgenteIaRoteiroD2 { align-items: center; gap: 6px; }
#blocoAgenteIaRoteiroD2 button, #btnLimparMarcasRoteiroD2 { padding: 6px 9px; font-size: 11px; font-weight: 600; white-space: nowrap; }
#btnLimparMarcasRoteiroD2 { color: var(--text-muted); }
.roteiro-topbar-right { flex-wrap: wrap; }
@media (min-width: 901px) {
  .roteiro-topbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); }
  .roteiro-topbar-center { min-width: 0; padding: 0; }
  .roteiro-nome-input { min-width: 180px; }
  .roteiro-topbar-right { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 600px) { .ai-route-dialog { padding: 16px; } .ai-route-metrics { grid-template-columns: 1fr; } .ai-route-actions button { flex: 1; } }
