/* Route editor inherits the line panel / ATS theme surface tokens. */
.service-route-editor { color:var(--ui-text); font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.service-route-note { margin:0 0 14px; color:var(--ui-muted); font-size:12px; }
.service-route-list { display:grid; gap:12px; }
.service-route-item {
  min-width:0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--ui-line);
}
.service-route-heading,.service-route-footer,.service-route-frequency { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.service-route-heading { margin-bottom:16px; }
.service-route-heading strong { font-size:14px; font-weight:650; letter-spacing:-.2px; }
.service-route-switch { flex-shrink:0; white-space:nowrap; }
.service-route-switch,.service-route-footer label { display:flex; align-items:center; gap:7px; color:var(--ui-muted); font-size:12px; }
.service-route-editor input[type="checkbox"] { accent-color:var(--cr-object-accent,var(--ui-accent)); width:17px; height:17px; margin:0; }
.service-route-endpoints { display:grid; grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr); align-items:end; gap:7px; margin-bottom:16px; }
.service-route-endpoints label,.service-route-frequency label { display:grid; gap:6px; min-width:0; }
.service-route-endpoints label>span,.service-route-frequency label>span:first-child { color:var(--ui-muted); font-size:12px; }
.service-route-arrow { padding-bottom:11px; color:var(--ui-muted); }
.service-route-editor select,.service-route-editor input[type="number"] { box-sizing:border-box; width:100%; min-width:0; min-height:40px; padding:8px; border:1px solid var(--ui-line); border-radius:9px; color:var(--ui-text); background:var(--ui-field); font:inherit; }
.service-route-number { display:flex; align-items:center; gap:7px; }
.service-route-number input { max-width:82px; font-variant-numeric:tabular-nums; }
.service-route-rate { color:var(--ui-muted); text-align:right; font-size:11px; }
.service-route-footer { margin-top:14px; padding-top:8px; border-top:1px solid var(--ui-line); }
.service-route-editor button { min-height:36px; padding:7px 12px; border:1px solid var(--ui-line); border-radius:9px; color:var(--ui-text); background:var(--ui-surface); font:inherit; cursor:pointer; }
.service-route-editor .service-route-add { width:100%; min-height:42px; color:var(--cr-object-accent,var(--ui-accent)); font-weight:600; }
.service-route-editor button:active { opacity:.65; }
.service-route-editor button:disabled { opacity:.45; cursor:default; }
.service-route-editor :is(button,input,select):focus-visible { outline:2px solid var(--ui-focus); outline-offset:3px; }
.service-route-error { color:var(--ui-danger,#ff453a); font-size:12px; margin:10px 0; }
.service-route-error:empty { margin:12px 0 0; }
.service-route-number > span { white-space:nowrap; }
.service-route-frequency > label { flex:0 0 auto; }
:is(.service-route-editor,.consist-config) input[role="switch"] { appearance:none; position:relative; width:34px; height:21px; border:1px solid var(--ui-line); border-radius:999px; background:var(--ui-muted); cursor:pointer; }
:is(.service-route-editor,.consist-config) input[role="switch"]::after { content:''; position:absolute; width:15px; height:15px; top:2px; left:2px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0003; transition:transform 150ms ease-out; }
:is(.service-route-editor,.consist-config) input[role="switch"]:checked { background:var(--cr-object-accent,var(--ui-accent)); }
:is(.service-route-editor,.consist-config) input[role="switch"]:checked::after { transform:translateX(13px); }
@media (prefers-reduced-motion:reduce) {
  :is(.service-route-editor,.consist-config) input[role="switch"]::after { transition:none; }
}
