.request-flow {
  --board: #1b1835;
  --track: #8d7bc7;
  --secondary-ink: #d3cce9;
  margin-top: clamp(21px, 3vw, 35px);
  padding: clamp(16px, 3.4vw, 36px);
  border: 1px solid #49406d;
  border-radius: 18px;
  color: #faf7ff;
  background: radial-gradient(circle at 82% 0%, #342557, transparent 58%), var(--board);
}

.request-flow-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.request-flow-heading h3 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.request-flow-heading a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #e3d7ff;
  font-size: 14px;
  font-weight: 650;
  text-decoration-color: #a896cf;
  text-underline-offset: 4px;
}

.request-flow-heading a:hover { color: white; text-decoration-color: currentColor; }
.request-flow-heading a:focus-visible { outline-color: #d3bfff; }
.request-flow-heading a span { font-size: 16px; }

.request-stations {
  --station-icon-size: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.request-station {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.station-pause { --signal: #ffd393; --station-top: #ffe6a8; --station-base: #b87346; }
.station-edit { --signal: #e0caff; --station-top: #e0caff; --station-base: #8661c8; }
.station-forward { --signal: #a3f0d4; --station-top: #b7f7d9; --station-base: #458e7e; }

.station-icon {
  box-sizing: border-box;
  z-index: 1;
  display: grid;
  width: var(--station-icon-size);
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 4px;
  background: var(--station-top);
  box-shadow: inset 0 -5px 0 var(--station-base), inset 0 3px 0 #ffffff85;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 8px 8px);
  transition: transform 180ms ease-out;
}

.station-icon img { width: 48px; height: 48px; image-rendering: pixelated; }

.request-station:not(:last-child)::before,
.request-station:not(:last-child)::after {
  position: absolute;
  content: "";
}

.request-station:not(:last-child)::before {
  top: calc(var(--station-icon-size) / 2);
  left: calc(var(--station-icon-size) + 9px);
  right: -6px;
  border-top: 2px dashed var(--track);
}

.request-station:not(:last-child)::after {
  top: calc(var(--station-icon-size) / 2 - 4px);
  right: -8px;
  width: 9px;
  height: 9px;
  border: solid var(--track);
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.station-example {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  min-height: 67px;
  padding: 8px clamp(9px, 1.3vw, 15px);
  border: 1px solid #554c75;
  border-radius: 9px;
  background: #131124;
}

.station-example code {
  color: #f7f1ff;
  font: 550 clamp(11px, 1.25vw, 15px)/1.38 var(--mono, monospace);
  overflow-wrap: anywhere;
}

.station-example b, .station-status { color: var(--signal); }
.station-status { font-size: 12px; font-weight: 600; line-height: 1.3; }
.diff-before { color: #ffb1c0; }
.diff-after { color: #a3f0d4; }
.station-copy h4 { margin: 0 0 4px; color: var(--signal); font-size: 18px; font-weight: 720; }
.station-copy p { margin: 0; color: var(--secondary-ink); font-size: 14px; line-height: 1.45; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .request-station:hover .station-icon { transform: translateY(-3px); }
}

@media (max-width: 680px) {
  .request-stations { --station-icon-size: 46px; grid-template-columns: 1fr; gap: 19px; }
  .request-station { grid-template-columns: var(--station-icon-size) minmax(0, 1fr); align-items: start; gap: 7px 12px; }
  .station-icon { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .station-icon img { width: 32px; height: 32px; }
  .station-copy { grid-column: 2; grid-row: 1; }
  .station-example { grid-column: 2; grid-row: 2; min-height: 56px; }
  .request-station:not(:last-child)::before {
    inset: calc(var(--station-icon-size) + 5px) auto -8px calc(var(--station-icon-size) / 2);
    border: 0;
    border-left: 2px dashed var(--track);
  }
  .request-station:not(:last-child)::after {
    inset: auto auto -9px calc(var(--station-icon-size) / 2 - 3.5px);
    transform: rotate(135deg);
  }
}
