.tr-move-journey {
  --journey-gap: 8px;
  --journey-marker: 30px;
  container-type: inline-size;
  padding: 18px clamp(12px, 2vw, 24px) 22px;
  background: #f7f9fd;
}
.tr-move-journey > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px 12px;
  padding-bottom: 14px;
}
.tr-move-journey > header h4 {
  margin: 0;
  color: #162c49;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.tr-move-journey ol {
  display: grid;
  gap: var(--journey-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tr-move-journey li {
  --journey-ink: #495e7d;
  --journey-tint: #edf2f8;
  --journey-line: #d0dbeb;
  position: relative;
  display: grid;
  grid-template-columns: var(--journey-marker) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.tr-move-journey li[data-phase="done"] {
  --journey-ink: #176044;
  --journey-tint: #e3f3eb;
  --journey-line: #a0cbb8;
}
.tr-move-journey li[data-phase="active"] {
  --journey-ink: #174caa;
  --journey-tint: #e5eeff;
  --journey-line: #a1baf0;
}
.tr-move-journey li[data-phase="cancelled"] {
  --journey-ink: #992e3e;
  --journey-tint: #fbe9ee;
}
.tr-move-journey li[data-phase="reported"] {
  --journey-ink: #735316;
  --journey-tint: #f8efdb;
}
.tr-move-journey li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--journey-marker) / 2 - 1px);
  inset-block: calc(var(--journey-marker) + 10px) calc(-1 * var(--journey-gap) - 12px);
  border-inline-start: 2px solid var(--journey-line);
  pointer-events: none;
}
.tr-move-journey li[data-phase="waiting"]::after { border-inline-start-style: dashed; }
.tr-move-journey-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--journey-marker);
  height: var(--journey-marker);
  margin-top: 12px;
  place-items: center;
  border: 1px solid var(--journey-line);
  border-radius: 50%;
  background: var(--journey-tint);
  color: var(--journey-ink);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tr-move-journey li[data-phase="active"] .tr-move-journey-index {
  border-color: #2259bd;
  background: #2259bd;
  color: #fff;
}
.tr-move-journey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 16px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}
.tr-move-journey li[data-phase="active"] .tr-move-journey-card {
  border-color: #96b5ed;
  border-inline-start: 3px solid #4074cf;
  padding-inline-start: 12px;
  background: #eff5ff;
}
.tr-move-journey-main { display: grid; gap: 4px; min-width: 0; }
.tr-move-journey-main strong { color: #172e4d; font-size: 15px; line-height: 1.3; }
.tr-move-journey-kind, .tr-move-journey-main p, .tr-move-journey-status time {
  margin: 0;
  color: #465c7b;
  font-size: 12px;
  line-height: 1.45;
}
.tr-move-journey-main .tr-move-journey-comment {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f9f1e1;
  color: #654c26;
}
.tr-move-journey-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.tr-move-journey-status span {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--journey-tint);
  color: var(--journey-ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}
.tr-move-journey .tr-move-empty { border: 1px solid #dbe4f0; }
@container (max-width: 460px) {
  .tr-move-journey li { --journey-marker: 25px; gap: 7px; }
  .tr-move-journey-card { grid-template-columns: minmax(0, 1fr); padding: 9px 10px; }
  .tr-move-journey li[data-phase="active"] .tr-move-journey-card { padding-inline-start: 8px; }
  .tr-move-journey-status { justify-content: flex-start; }
}
