.decision-roadmap {
  --dr-ink: var(--yxd-v2-ink, #24352f);
  --dr-muted: var(--yxd-v2-muted, #738078);
  --dr-line: var(--yxd-border-strong);
  --dr-green: #17745b;
  --dr-green-soft: #edf6f2;
  --dr-accent: var(--yxd-accent);
  position: sticky;
  top: 0;
  z-index: 18;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 14px;
  border: 1px solid var(--dr-line);
  border-radius: 6px;
  background: rgba(252, 253, 252, .97);
  color: var(--dr-ink);
  box-shadow: 0 6px 18px rgba(32, 52, 45, .04);
  backdrop-filter: blur(10px);
}
.dr-header { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.dr-toggle { min-width: 0; min-height: 46px; flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.dr-toggle strong { flex: none; font-size: 13px; font-weight: 720; }
.dr-chevron { width: 14px; flex: none; color: var(--dr-green); font-size: 11px; }
.dr-count { flex: none; color: var(--dr-muted); font-size: 11px; }
.dr-current { min-width: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--dr-line); }
.dr-current small { flex: none; color: var(--dr-green); font-size: 10px; font-weight: 650; }
.dr-current b { min-width: 0; overflow: hidden; color: #334b42; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dr-live-meta { flex: none; padding: 3px 7px; border-radius: 4px; background: var(--dr-green-soft); color: #4d7465; font-size: 10px; white-space: nowrap; }
.dr-live-meta[data-lagging='true'] { background: #fbf3e7; color: #99651f; }
.dr-viewport { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-x: auto; overflow-y: hidden; padding: 0 10px 12px; border-top: 1px solid var(--yxd-sunk); scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--yxd-border-strong) transparent; }
.dr-focus { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 5px 0; color: var(--dr-muted); font-size: 10px; }
.dr-focus span { color: var(--dr-accent); font-weight: 650; }
.dr-focus b { max-width: 70%; overflow: hidden; color: #514b58; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.dr-map { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 8px; width: max-content; min-width: 100%; padding-top: 8px; }
.dr-topic { min-width: 0; padding: 5px 7px 7px; border: 1px solid transparent; border-radius: 5px; scroll-snap-align: start; }
.dr-topic[data-current='true'] { border-color: #c9ddd5; background: var(--yxd-sunk); }
.dr-topic[data-settled='true'] { opacity: .55; }
.dr-topic-node { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 4px 5px; border: 0; border-radius: 4px; background: transparent; color: var(--dr-ink); text-align: left; cursor: pointer; }
.dr-topic-node:hover, .dr-topic-node[data-selected='true'] { background: #f0f4f2; }
.dr-topic-node strong { min-width: 0; flex: 1; overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dr-topic-node span { flex: none; color: var(--dr-muted); font-size: 9px; }
.dr-topic-node em { flex: none; padding: 1px 4px; border-radius: 3px; background: #e4f2ec; color: var(--dr-green); font-size: 8px; font-style: normal; font-weight: 700; }
.dr-lanes { position: relative; display: grid; gap: 1px; padding-left: 12px; }
.dr-lanes::before { content: ''; position: absolute; top: 0; bottom: 10px; left: 5px; width: 1px; background: var(--yxd-border-strong); }
.dr-lane-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 2px; }
.dr-lane-node { min-width: 0; min-height: 40px; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; align-items: center; gap: 5px; padding: 4px 5px; border: 0; border-radius: 4px; background: transparent; color: #526159; text-align: left; cursor: pointer; }
.dr-lane-node:hover, .dr-lane-node[data-selected='true'] { background: var(--yxd-sunk); color: #302b35; }
.dr-lane-node[data-current='true'] { color: #264b3e; font-weight: 650; }
.dr-node-dot { position: relative; z-index: 1; width: 6px; height: 6px; border: 2px solid var(--yxd-sunk); border-radius: 50%; background: var(--yxd-text-2); box-shadow: 0 0 0 1px #c2bbc9; }
.dr-lane-node[data-current='true'] .dr-node-dot { background: var(--dr-green); box-shadow: 0 0 0 1px #8fbbaa, 0 0 0 4px rgba(23, 116, 91, .08); }
.dr-node-copy { min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.dr-lane-node small { color: #71837a; font-size: 9px; white-space: nowrap; }
.dr-lane-node i { padding: 1px 4px; border-radius: 3px; background: #edf6f1; color: #2e7457; font-size: 8px; font-style: normal; font-weight: 700; white-space: nowrap; animation: dr-arrive 260ms cubic-bezier(.22, 1, .36, 1) both; }
.dr-lane-row[data-status='attention'] .dr-node-dot { background: #c58b31; box-shadow: 0 0 0 1px #dfc18c; }
.dr-lane-row[data-status='decided'] .dr-node-dot { background: #43826a; box-shadow: 0 0 0 1px #9cc5b5; }
.dr-lane-row[data-status='merged'], .dr-lane-row[data-status='settled'] { opacity: .5; }
.dr-pin { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #968e9d; font-size: 15px; cursor: pointer; }
.dr-pin:hover, .dr-pin[data-pinned='true'] { background: var(--yxd-sunk); color: var(--dr-accent); }
.dr-toggle:focus-visible, .dr-topic-node:focus-visible, .dr-lane-node:focus-visible, .dr-pin:focus-visible { outline: 2px solid var(--dr-accent); outline-offset: 2px; }
@keyframes dr-arrive { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) {
  .decision-roadmap { position: relative; margin-bottom: 10px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .dr-header { min-height: 52px; padding: 0 8px; }
  .dr-toggle { min-height: 50px; flex-wrap: wrap; align-content: center; gap: 5px 7px; }
  .dr-toggle strong { font-size: 12px; }
  .dr-count { margin-right: auto; }
  .dr-current { order: 5; width: calc(100% - 20px); margin-left: 20px; padding-left: 0; border-left: 0; }
  .dr-current b { font-size: 11px; }
  .dr-live-meta { align-self: center; }
  .dr-viewport { padding: 0 8px 10px; }
  .dr-map { grid-auto-columns: minmax(260px, 84vw); min-width: 0; }
  .dr-topic-node, .dr-lane-node { min-height: 44px; }
  .dr-node-copy { font-size: 12px; white-space: normal; }
  .dr-pin { width: 44px; height: 44px; }
  .dr-lane-row { grid-template-columns: minmax(0, 1fr) 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .decision-roadmap *, .decision-roadmap *::before, .decision-roadmap *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
