.research-plan {
  --research-plan-accent: #087657;
  --research-plan-text: #20392d;
  --research-plan-muted: #61786c;
  --research-plan-line: #b9d5c6;
  width: 100%;
  margin: 0 0 12px;
  padding: 15px 17px 17px;
  border: 1px solid #cfe6d9;
  border-radius: 17px;
  background: #f5fbf8;
  color: var(--research-plan-text);
}

.research-plan--dark {
  --research-plan-accent: #34d399;
  --research-plan-text: #e2f7ed;
  --research-plan-muted: #a9c9bb;
  --research-plan-line: #477465;
  border-color: rgb(110 231 183 / 25%);
  background: rgb(110 231 183 / 5%);
}

.research-plan-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.research-plan-heading strong { font-size: 13px; }
.research-plan-heading span { color: var(--research-plan-muted); font-size: 11px; white-space: nowrap; }

.research-plan-track { max-width: 100%; margin-top: 15px; }

.research-plan-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
}

.research-plan-step {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 0 0 16px;
  text-align: left;
  color: var(--research-plan-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.research-plan-step::after {
  position: absolute;
  top: 34px;
  bottom: 4px;
  left: 14px;
  border-left: 2px dotted var(--research-plan-line);
  content: "";
}

.research-plan-step:last-child { padding-bottom: 0; }
.research-plan-step:last-child::after { display: none; }
.research-plan-step.completed::after { border-color: var(--research-plan-accent); }
.research-plan-step.in_progress, .research-plan-step.completed { color: var(--research-plan-text); }
.research-plan-step.blocked { color: #916a2b; }
.research-plan--dark .research-plan-step.blocked { color: #fcd995; }

.research-plan-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 2px solid var(--research-plan-line);
  border-radius: 50%;
  background: #fff;
  color: var(--research-plan-muted);
  font-size: 12px;
  font-weight: 700;
}

.research-plan--dark .research-plan-marker { background: #152820; }
.research-plan-step.in_progress .research-plan-marker {
  border-color: var(--research-plan-accent);
  color: var(--research-plan-accent);
  box-shadow: 0 0 0 4px rgb(52 211 153 / 13%);
}
.research-plan-step.completed .research-plan-marker {
  border-color: var(--research-plan-accent);
  background: var(--research-plan-accent);
  color: #fff;
}
.research-plan--dark .research-plan-step.completed .research-plan-marker { color: #103226; }
.research-plan-step.blocked .research-plan-marker { border-color: #c5964b; color: #916a2b; }

.research-plan-detail { display: grid; gap: 4px; margin-top: 5px; overflow-wrap: anywhere; }
.research-plan-detail small { color: inherit; font-size: 10px; opacity: .86; }

@media (max-width: 640px) {
  .research-plan { padding: 13px 12px 14px; }
}
