:root{
  --route-ink:#243b45;
  --route-muted:#657982;
  --route-border:#dfe8e9;
  --route-surface:#ffffff;
  --route-surface-soft:#f5f9f8;
  --route-accent:#2d7064;
}
.route-planning-heading{padding:20px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:18px}
.route-planning-heading h2{font-size:22px;letter-spacing:-.35px;color:var(--route-ink)}
.route-planning-heading>div>p:last-child{font-size:11px;color:var(--route-muted);margin:0}
.route-workspace{grid-template-columns:minmax(290px,.76fr) minmax(0,1.42fr);gap:16px;padding:18px 20px 22px}
.route-controls{display:grid;gap:11px;min-width:0}
.route-control-block{min-width:0;padding:14px;border:1px solid var(--route-border);border-radius:10px;background:var(--route-surface)}
.route-step-label{margin:0 0 12px;color:var(--route-ink);font-size:11px;font-weight:700;letter-spacing:.02em}
.route-step-label>span{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:7px;border-radius:7px;background:#eaf3f0;color:var(--route-accent);font-size:9px}
.route-form-grid{margin-bottom:8px}
.route-origin-summary{margin:10px 0 0;border-radius:0 8px 8px 0;font-size:10px;overflow-wrap:anywhere}
.route-provider-status{margin:10px 0 0;font-size:10px;line-height:1.55}
.route-engine-retry{margin-top:8px;font-size:10px}
.route-operator-group>header{align-items:center;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid #edf1f2}
.route-operator-group>header>div{flex:1 1 130px;min-width:100px}
.route-origin-choice{flex:0 1 190px;min-width:150px;margin:0;display:grid;gap:5px;color:#536a72;font-size:9px}
.route-origin-choice select{width:100%;min-width:0;padding:8px 9px;font-size:10px}
.route-company{gap:10px;padding:9px 10px;border-radius:7px}
.route-company strong{font-size:11px;color:var(--route-ink)}
.route-company small{line-height:1.5}
.route-select-all-control{padding:7px 0}
.route-company-search{max-width:none}
.route-company-search input{padding:9px 10px}
.route-map-panel{top:12px}
#route-preview-map{height:min(64vh,560px);min-height:400px}
.route-map-header{min-height:64px}
.route-map-header>div>p:last-child{margin:4px 0 0;color:var(--route-muted);font-size:10px}
.route-preview-status{font-size:10px}
.route-primary-action{position:sticky;bottom:10px;z-index:2;padding:12px;border:1px solid #d8e6e1;border-radius:10px;background:#fffffff2;box-shadow:0 5px 18px #143b4614;backdrop-filter:blur(8px)}
.route-primary-action button{width:100%;min-height:44px;font-size:12px;font-weight:700}
.route-primary-action small{display:block;margin-top:7px;color:var(--route-muted);font-size:9px;line-height:1.5;text-align:center}
.route-results-summary article{min-height:75px}
.route-result-card{padding:15px}
.route-visit-sequence li{padding:10px 12px}
.saved-route-section{margin:0 20px 20px}
.record-form-section[aria-label="Endereço e localização"] .address-field{grid-column:1/-1}
.address-field>input{min-height:44px;border-color:#9fbab4;box-shadow:0 0 0 3px #2d70640b;font-size:13px}
.address-field>input::placeholder{color:#829399}
.address-actions>div{display:flex;gap:8px;flex-wrap:wrap}
.address-actions #search-address{border-color:var(--route-accent);background:var(--route-accent);color:#fff}
.address-actions #search-address:hover{background:#245d53}
.address-actions small{display:block;margin-top:7px}
@media(max-width:1100px){
  .route-workspace{grid-template-columns:minmax(275px,.82fr) minmax(0,1.18fr);gap:12px;padding:15px}
  #route-preview-map{height:430px;min-height:340px}
}
@media(max-width:820px){
  .route-workspace{grid-template-columns:1fr}
  .route-map-panel{grid-row:1;position:static}
  .route-controls{grid-row:2}
  #route-preview-map{height:390px;min-height:320px}
  .route-primary-action{position:static}
}
@media(max-width:560px){
  .route-planning-heading{align-items:flex-start;flex-direction:column;padding:16px 15px 0}
  .route-engine-badge{white-space:normal}
  .route-workspace{padding:12px;gap:11px}
  .route-control-block{padding:12px}
  #route-preview-map{height:320px;min-height:280px}
  .route-origin-choice{flex:1 1 100%}
  .saved-route-section{margin:0 12px 14px}
}
