.route-process {
  --rp-field: var(--ui-bg,#0d151f);
  --rp-line: var(--ui-border,#384b5b);
  --rp-ink: var(--ui-text,#eef4fa);
  --rp-muted: var(--ui-muted,#b2c5d3);
  --rp-body: #3d566b;
  --rp-outline: #b5cad9;
  --rp-accent: #f2c987;
  --rp-accent-body: #685130;
  --rp-steel: #8094a4;
  margin: .8rem 0 1rem;
  padding: .75rem clamp(.65rem,2.5vw,1.05rem);
  max-width: 100%;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  color: var(--rp-ink);
  background: var(--rp-field);
}
.route-process figcaption {display:flex;align-items:center;justify-content:space-between;gap:.6rem;font-size:.95rem;font-weight:720;line-height:1.35}
.route-process .route-process-title {display:block}
.route-process .rp-direction {display:flex;align-items:center;gap:.4rem;color:var(--rp-muted);font-size:.78rem;font-weight:600}
.route-process .rp-direction [aria-hidden] {color:var(--rp-accent);font-size:1.25em}
.route-process .rp-visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.route-process .rp-orientation {display:flex;align-items:center;gap:.6rem;margin-top:.55rem;color:var(--rp-muted);font-size:.78rem;line-height:1.3}
.route-process .rp-orientation::before {content:"";height:1px;background:var(--rp-line);flex:1;order:1}
.route-process .rp-orientation span:last-child {order:2}
.route-process .rp-row {margin:0;padding:.65rem 0 .3rem}
.route-process .rp-row + .rp-row {margin-top:.3rem;border-top:1px solid var(--rp-line)}
.route-process .rp-row h4 {margin:0 0 .22rem;font-size:.86rem;font-weight:660;color:var(--rp-ink)}
.route-process .rp-consist,.route-process .rp-movement {margin-inline:auto;width:100%;min-width:0}
.route-process .rp-consist {max-width:36rem}
.route-process .rp-units-3 {max-width:24rem}
.route-process .rp-units-4 {max-width:30rem}
.route-process .rp-movement {max-width:35rem}
.route-process .diagram-drawing svg {display:block;width:100%;height:auto;fill:none;stroke:none;stroke-linecap:round;stroke-linejoin:round}
.route-process .rp-vehicle {color:var(--rp-outline)}
.route-process .rp-changed {color:var(--rp-accent)}
.route-process .rp-shell {fill:var(--rp-body);stroke:currentColor;stroke-width:1.85}
.route-process .rp-changed .rp-shell {fill:var(--rp-accent-body)}
.route-process .rp-window {stroke:currentColor;stroke-width:1.25;fill:var(--rp-field)}
.route-process .rp-detail,.route-process .rp-coupling {stroke:currentColor;stroke-width:1.55;fill:none}
.route-process .rp-coupling {stroke:var(--rp-steel);stroke-width:2}
.route-process .rp-wheels {fill:var(--rp-field);stroke:currentColor;stroke-width:1.4}
.route-process .rp-rail,.route-process .rp-track {stroke:var(--rp-steel);stroke-width:1.65}
.route-process .rp-labels {display:grid;grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;align-items:start;text-align:center;gap:2px}
.route-process .rp-piece,.route-process .rp-move-labels span {padding:.1rem .1rem 0;font-size:clamp(.85rem,1.8vw,.92rem);line-height:1.24;overflow-wrap:anywhere;hyphens:auto}
.route-process .rp-piece.rp-double {grid-column:span 2}
.route-process .rp-scale {margin:.55rem 0 0;color:var(--rp-muted);font-size:.77rem;line-height:1.35}
.route-process .rp-hoses {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-top:.4rem}
.route-process .rp-hoses .rp-row {padding:.4rem 0 0}
.route-process .rp-hoses .rp-row + .rp-row {margin:0;border:0}
.route-process .rp-hoses .rp-row h4 {text-align:center}
.route-process .rp-hose-view {max-width:15rem;margin:auto}
.route-process .rp-pipe {stroke:var(--rp-outline);stroke-width:4.5}
.route-process .rp-support {fill:var(--rp-body);stroke:var(--rp-outline);stroke-width:1.75}
.route-process .rp-hose {stroke:var(--rp-accent);stroke-width:4}
.route-process .rp-cuff {fill:var(--rp-accent-body);stroke:var(--rp-accent);stroke-width:1.75}
.route-process .rp-movement {padding-top:.4rem}
.route-process .rp-road {fill:var(--rp-body);opacity:.65}
.route-process .rp-road-edge {stroke:var(--rp-steel);stroke-width:1}
.route-process .rp-road-center {stroke:var(--rp-muted);stroke-width:1.3;stroke-dasharray:5 5}
.route-process .rp-move-labels {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-inline:16%;text-align:center;gap:.35rem;line-height:1.24}
.route-process .rp-separated .rp-move-labels {grid-template-columns:repeat(3,minmax(0,1fr));margin:0}

.diagram-dialog .route-process .rp-consist, .diagram-dialog .route-process .rp-movement {max-width:48rem}
.diagram-dialog .route-process .rp-hose-view {max-width:20rem}
