/* routing module (Routing page, agent C): prefix .rt- . Shared engine colours for every page: */
:root { --eng-mip: #1F5FAF; --eng-cg: #2E8763; }
.rt-legend { gap: 14px; font-size: 12.5px; color: var(--ink2); }
.rt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rt-sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; flex: none; }
.rt-sw.mip { background: var(--eng-mip); } .rt-sw.cg { background: var(--eng-cg); }
.rt-sw.dr { background: transparent; border: 1.5px dashed var(--ink2); }
/* flow chart */
.rt-flow { position: relative; display: grid; grid-template-columns: max-content minmax(90px, 1fr) minmax(240px, 290px); gap: 0; align-items: stretch; margin-top: 8px; }
.rt-svg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.rt-bands, .rt-engs { position: relative; z-index: 1; }
.rt-bands { display: grid; gap: 14px; }
.rt-band { display: grid; grid-template-columns: 156px 30px 212px; align-items: stretch; }
.rt-grp { grid-column: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 10px 12px;
  border: 1px solid var(--hair); border-radius: 10px; background: var(--added); position: relative; }
.rt-grp b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.rt-grp .rt-glk { position: absolute; top: 8px; right: 9px; color: var(--ns-t); }
.rt-gm { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.rt-gm.amb { color: var(--ns-t); font-weight: 600; }
.rt-tiles { grid-column: 3; display: grid; gap: 4px; }
.rt-tile { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 11px; border: 1px solid var(--hair); border-left-width: 4px;
  border-radius: 7px; background: #fff; text-align: left; font-size: 13px; transition: border-color .12s, background-color .12s, box-shadow .12s; }
.rt-tile.e-mip { border-left-color: var(--eng-mip); } .rt-tile.e-cg { border-left-color: var(--eng-cg); }
.rt-tile .rt-tl { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-tile .rt-te { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.rt-tile.e-mip .rt-te { color: var(--eng-mip); } .rt-tile.e-cg .rt-te { color: var(--acc-dd); }
.rt-tile .rt-dm { font-size: 10.5px; font-weight: 700; color: var(--ns-t); background: var(--ns-f); border-radius: 4px; padding: 0 5px; }
.rt-tile.drf { border-style: dashed; border-left-style: solid; border-color: var(--ns-b); box-shadow: 0 0 0 1px var(--ns-b); }
.rt-tile.drf.e-mip { border-left-color: var(--eng-mip); } .rt-tile.drf.e-cg { border-left-color: var(--eng-cg); }
.rt-tile:hover:not(:disabled) { border-color: var(--acc); box-shadow: var(--sh-thumb); }
.rt-tile.e-mip:hover:not(:disabled) { border-left-color: var(--eng-mip); } .rt-tile.e-cg:hover:not(:disabled) { border-left-color: var(--eng-cg); }
.rt-tile:disabled { cursor: not-allowed; color: var(--ink2); background: var(--added); }
.rt-tile:disabled .stg-lk { color: var(--ns-t); flex: none; }
.rt-engs { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.rt-en { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 14px 16px 14px 22px; border: 1px solid var(--hair); border-radius: 12px; background: #fff; box-shadow: var(--sh-card); }
.rt-en::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 8px; border-radius: 12px 0 0 12px; }
.rt-en.e-mip::before { background: var(--eng-mip); } .rt-en.e-cg::before { background: var(--eng-cg); }
.rt-en.empty { background: var(--added); }
.rt-en.empty::before { opacity: .45; }
.rt-enh { display: flex; align-items: center; gap: 8px; }
.rt-enh b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.rt-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.rt-kv dd { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.rt-en .stg-warn { margin-top: 0; }
/* ribbons */
.rt-fan { fill: none; stroke: var(--plain); stroke-width: 1.4; }
.rt-stub { fill: none; stroke-width: 1.8; stroke-opacity: .55; }
.rt-stub.e-mip { stroke: var(--eng-mip); } .rt-stub.e-cg { stroke: var(--eng-cg); }
.rt-stub.drf { stroke-dasharray: 4 3; stroke-opacity: .9; }
.rt-rb { stroke-width: 1; transition: fill-opacity .12s; }
.rt-rb.e-mip { fill: var(--eng-mip); fill-opacity: .24; stroke: var(--eng-mip); stroke-opacity: .3; }
.rt-rb.e-cg { fill: var(--eng-cg); fill-opacity: .34; stroke: var(--eng-cg); stroke-opacity: .45; }
.rt-rb.drf { fill-opacity: .1; stroke-opacity: 1; stroke-width: 1.4; stroke-dasharray: 5 4; }
.rt-rb.cf { stroke-opacity: .9; stroke-dasharray: 6 5; animation: rt-flow 1s linear infinite; }
.rt-rb.hl { fill-opacity: .55; stroke-opacity: 1; } .rt-stub.hl { stroke-opacity: 1; stroke-width: 2.6; }
@keyframes rt-flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .rt-rb.cf { animation: none; } }
.rt-lockl { margin-top: 14px; }
/* rollout */
.rt-roll { margin-top: 16px; }
.rt-steps { display: grid; grid-template-columns: minmax(0, 2.2fr) 34px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.rt-step { border: 1px solid var(--hair); border-radius: 10px; padding: 14px 16px; background: var(--added); min-width: 0; }
.rt-step.now { background: var(--info-t); border-color: #D3E1F4; }
.rt-step.done { background: var(--acc-t); border-color: var(--acc-l); }
.rt-sh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rt-sh b { font-size: 14.5px; font-weight: 600; }
.rt-n { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; background: #fff; border: 1.5px solid var(--plain-d); color: var(--muted); flex: none; }
.rt-step.now .rt-n { border-color: var(--info); color: var(--info); }
.rt-step.done .rt-n { background: var(--acc-d); border-color: var(--acc-d); color: #fff; }
.rt-c { margin-left: auto; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.rt-pb { height: 8px; border-radius: 4px; background: #fff; border: 1px solid var(--hair); overflow: hidden; }
.rt-pb i { display: block; height: 100%; background: var(--info); transition: width .25s; }
.rt-step.done .rt-pb i { background: var(--acc); }
.rt-dots { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.rt-dg { display: grid; gap: 5px; align-content: start; }
.rt-dg > span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rt-dg > div { display: flex; gap: 5px; flex-wrap: wrap; min-height: 13px; align-items: center; }
.rt-dg i { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid var(--plain-d); transition: background-color .2s, border-color .2s; }
.rt-dg i.ok { background: var(--acc); border-color: var(--acc); }
.rt-arr { display: flex; align-items: center; justify-content: center; color: var(--plain-d); }
.rt-step.done + .rt-arr { color: var(--acc); }
.rt-live { display: grid; gap: 2px; }
.rt-live b { font-size: 20px; font-weight: 700; color: var(--acc-dd); letter-spacing: -.01em; }
.rt-live span { font-size: 12.5px; }
/* narrow: no ribbons; engines on top, then each group with its tiles */
@media (max-width: 1100px) {
  .rt-flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rt-svg, .rt-mid { display: none; }
  .rt-engs { order: -1; flex-direction: row; flex-wrap: wrap; }
  .rt-en { flex: 1 1 240px; min-height: 0 !important; padding: 12px 12px 12px 18px; gap: 8px; }
  .rt-band { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rt-grp { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 8px; background: none; border: 0; padding: 0; }
  .rt-grp .rt-glk { position: static; }
  .rt-tiles { grid-column: 1; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
  .rt-tile { height: 38px; }
  .rt-bands { gap: 18px; }
}
@media (max-width: 760px) {
  .rt-en { flex-basis: 100%; }
  .rt-kv dd { font-size: 18px; }
  .rt-enh b { font-size: 15px; }
  .rt-steps { grid-template-columns: minmax(0, 1fr); }
  .rt-arr { transform: rotate(90deg); height: 22px; }
  .rt-legend { display: none; }
}
/* a tile the viewer cannot change: the same look as a value, no hover and no pointer */
div.rt-tile { cursor: default; }
div.rt-tile:hover { border-color: var(--hair); box-shadow: none; }
div.rt-tile.e-mip:hover { border-left-color: var(--eng-mip); } div.rt-tile.e-cg:hover { border-left-color: var(--eng-cg); }
