.detail .prose {
  min-width: 0;
}

.decision-list {
  display: grid;
  gap: 18px;
  margin: 18px 0 20px;
}

.decision-row {
  display: grid;
  grid-template-columns: 24px minmax(170px, 210px) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  min-width: 0;
}

.decision-check {
  display: block;
  color: #10b981;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
}

.decision-title {
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 800;
}

.detail .prose .decision-text {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

.detail .prose .decision-takeaway {
  margin: 20px 0 0;
  color: var(--text);
}

.mobility-sim-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}

.mobility-sim-notes article {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.mobility-sim-notes strong,
.mobility-sim-notes span {
  display: block;
}

.mobility-sim-notes strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
}

.mobility-sim-notes span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.mobility-sim {
  --mrs-bg: #07111f;
  --mrs-panel: #0d1728;
  --mrs-ink: #f8fafc;
  --mrs-text: #cbd5e1;
  --mrs-muted: #8fa1b8;
  --mrs-line: rgba(148, 163, 184, .22);
  --mrs-blue: #38bdf8;
  --mrs-green: #22c55e;
  --mrs-amber: #f59e0b;
  --mrs-red: #ef4444;
  margin: 26px 0 38px;
  scroll-margin-top: 112px;
  padding: 18px;
  border: 1px solid rgba(79, 70, 229, .22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 4%, rgba(56, 189, 248, .17), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(124, 58, 237, .14), transparent 28%),
    linear-gradient(135deg, #08111f, #0b1220 46%, #08111e);
  color: var(--mrs-text);
  box-shadow: 0 22px 70px rgba(11, 16, 32, .16);
  overflow: hidden;
}

.mobility-sim.reveal.in {
  opacity: 1;
  transform: none;
}

.mobility-sim * {
  box-sizing: border-box;
}

.mobility-sim button,
.mobility-sim input {
  font: inherit;
}

.mobility-sim button {
  cursor: pointer;
}

.mobility-sim-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.mobility-sim-kicker {
  margin: 0 0 7px;
  color: var(--mrs-blue) !important;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mobility-sim h4 {
  margin: 0;
  color: var(--mrs-ink);
  font-family: var(--sans);
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.1;
}

.mobility-sim-time {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(56, 189, 248, .34);
  border-radius: 14px;
  background: rgba(56, 189, 248, .08);
  text-align: right;
}

.mobility-sim-time span,
.mobility-sim-time small {
  display: block;
}

.mobility-sim-time span {
  color: var(--mrs-ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.mobility-sim-time small {
  color: var(--mrs-blue);
  margin-top: 5px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mobility-sim-flow {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 18px;
  background:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, .10), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(34, 197, 94, .08), transparent 28%),
    #081321;
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

.mobility-sim-svg {
  display: block;
  width: 100%;
  height: min(54vh, 520px);
  min-height: 420px;
}

.mrs-branch,
.mrs-distribution-base,
.mrs-track-progress,
.mrs-gate-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mrs-distribution-base {
  stroke: rgba(148, 163, 184, .18);
  stroke-width: 4;
}

.mrs-track-progress {
  stroke: rgba(56, 189, 248, .9);
  stroke-width: 4;
}

.mrs-track-progress.review,
.mrs-branch.review {
  stroke: rgba(245, 158, 11, .92);
}

.mrs-track-progress.blocked,
.mrs-branch.blocked {
  stroke: rgba(239, 68, 68, .92);
}

.mrs-track-progress.approved,
.mrs-branch.approved {
  stroke: rgba(34, 197, 94, .92);
}

.mrs-branch {
  stroke-width: 5;
  opacity: .96;
}

.mrs-track-marker {
  fill: #091625;
  stroke: rgba(147, 164, 186, .78);
  stroke-width: 2;
}

.mrs-lane-label {
  fill: #7dd3fc;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
}

.mrs-terminal rect {
  fill: rgba(15, 23, 42, .94);
  stroke: rgba(148, 163, 184, .28);
  stroke-width: 1.5;
}

.mrs-terminal text,
.mrs-stage-node text {
  fill: var(--mrs-ink);
  font-size: 15px;
  font-weight: 900;
  text-anchor: middle;
}

.mrs-stage-node text {
  font-size: 13px;
}

.mrs-terminal .mrs-small,
.mrs-stage-node .mrs-small {
  fill: #93a4ba;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.mrs-stage-node .mrs-small {
  font-size: 8.5px;
}

.mrs-approve-terminal rect {
  stroke: rgba(34, 197, 94, .72);
}

.mrs-review-terminal rect {
  stroke: rgba(245, 158, 11, .72);
}

.mrs-block-terminal rect {
  stroke: rgba(239, 68, 68, .72);
}

.mrs-stage-node rect {
  fill: rgba(15, 23, 42, .94);
  stroke: rgba(148, 163, 184, .26);
  stroke-width: 1.4;
}

.mrs-stage-node .mrs-gate-line {
  stroke: rgba(148, 163, 184, .23);
  stroke-width: 2;
  stroke-dasharray: 4 8;
}

.mrs-stage-node.active .mrs-gate-line,
.mrs-stage-node.active rect {
  stroke: rgba(56, 189, 248, 1);
  filter: url(#mobilityTokenGlow);
}

.mrs-stage-node.review .mrs-gate-line,
.mrs-stage-node.review rect {
  stroke: rgba(245, 158, 11, 1);
}

.mrs-stage-node.blocked .mrs-gate-line,
.mrs-stage-node.blocked rect {
  stroke: rgba(239, 68, 68, 1);
}

.mrs-token {
  transition: none;
}

.mrs-token circle {
  fill: var(--mrs-blue);
  stroke: rgba(255, 255, 255, .78);
  stroke-width: 2;
  filter: url(#mobilityTokenGlow);
}

.mrs-token text {
  fill: #020617;
  font-size: 9.5px;
  font-weight: 950;
  text-anchor: middle;
  dominant-baseline: middle;
}

.mrs-token.selected circle {
  stroke: #fff;
  stroke-width: 4;
}

.mrs-token.approved circle {
  fill: var(--mrs-green);
}

.mrs-token.review circle {
  fill: var(--mrs-amber);
}

.mrs-token.blocked circle {
  fill: var(--mrs-red);
}

.mobility-sim-timeline {
  display: grid;
  grid-template-columns: 46px 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.mrs-icon-btn,
.mrs-scenario {
  border: 1px solid var(--mrs-line);
  color: var(--mrs-ink);
  background: rgba(15, 23, 42, .82);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mrs-icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.mrs-icon-btn svg {
  width: 22px;
  height: 22px;
}

.mrs-icon-btn svg path {
  fill: currentColor;
}

.mrs-reset-btn svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mrs-icon-btn:hover,
.mrs-scenario:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, .7);
}

.mrs-icon-btn.playing {
  background: rgba(34, 197, 94, .16);
  border-color: rgba(34, 197, 94, .65);
}

.mrs-range-wrap input {
  width: 100%;
  accent-color: var(--mrs-blue);
}

.mrs-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--mrs-muted);
  font-size: 12px;
  font-weight: 900;
  margin-top: 5px;
}

.mrs-scenarios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mrs-scenario {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  font-weight: 900;
}

.mrs-scenario.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, .28), rgba(129, 140, 248, .18));
  border-color: rgba(56, 189, 248, .7);
}

@media (max-width: 880px) {
  .decision-row {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
  }

  .decision-title,
  .decision-text {
    grid-column: 2;
  }

  .mobility-sim-notes {
    grid-template-columns: 1fr;
  }

  .mobility-sim-head {
    flex-direction: column;
  }

  .mobility-sim-time {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .mobility-sim {
    padding: 14px;
    margin-left: -2px;
    margin-right: -2px;
  }

  .mobility-sim-flow {
    overflow-x: auto;
  }

  .mobility-sim-svg {
    min-width: 760px;
    height: 480px;
    min-height: 480px;
  }

  .mobility-sim-timeline {
    grid-template-columns: 46px 46px minmax(0, 1fr);
  }

  .mrs-ticks {
    display: none;
  }

  .mrs-scenarios {
    grid-template-columns: 1fr;
  }
}
