.gf-roadmap-root,
.gf-roadmap-root * {
  box-sizing: border-box;
}

.gf-roadmap {
  width: min(1120px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 32px;
  color: #f4f7f6;
}

.gf-roadmap-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.gf-roadmap-title {
  margin: 0;
  color: #f7fbfa;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 900;
}

.gf-roadmap-subtitle {
  margin: 6px 0 0;
  color: rgba(244, 247, 246, .68);
  font-size: .95rem;
  line-height: 1.45;
}

.gf-roadmap-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.gf-roadmap-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gf-roadmap-filter {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .07);
  color: #f4f7f6;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.gf-roadmap-filter:hover,
.gf-roadmap-filter:focus-visible {
  border-color: rgba(150, 223, 206, .62);
  outline: none;
  transform: translateY(-1px);
}

.gf-roadmap-filter.is-inactive {
  opacity: .44;
}

.gf-roadmap-filter.is-done {
  background: rgba(36, 197, 129, .16);
  color: #b8f6d7;
}

.gf-roadmap-filter.is-progress {
  background: rgba(139, 92, 246, .18);
  color: #d8cdfd;
}

.gf-roadmap-filter.is-planned,
.gf-roadmap-filter.is-all {
  background: rgba(255, 255, 255, .07);
  color: rgba(244, 247, 246, .86);
}

.gf-roadmap-search {
  display: block;
  width: min(320px, 100%);
}

.gf-roadmap-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(8, 10, 15, .58);
  color: #f4f7f6;
  font: inherit;
  font-size: .92rem;
  outline: none;
}

.gf-roadmap-search input::placeholder {
  color: rgba(244, 247, 246, .48);
}

.gf-roadmap-search input:focus {
  border-color: rgba(150, 223, 206, .72);
  box-shadow: 0 0 0 3px rgba(150, 223, 206, .12);
}

.gf-roadmap-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.gf-roadmap-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 247, 246, .72);
  font-size: .9rem;
}

.gf-roadmap-progress-row strong {
  color: #f7fbfa;
}

.gf-roadmap-progress-bar {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  background: rgba(8, 10, 15, .72);
}

.gf-roadmap-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #96dfce, #8b5cf6);
}

.gf-roadmap-tree {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(24, 27, 34, .74);
}

.gf-roadmap-node {
  display: grid;
  gap: 10px;
  margin-left: calc(var(--gf-roadmap-depth, 0) * 18px);
  transition: opacity .16s ease;
}

.gf-roadmap-node.is-muted {
  opacity: .42;
}

.gf-roadmap-node-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: start;
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  padding: 10px;
  background: rgba(53, 51, 51, .92);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gf-roadmap-node-main:hover,
.gf-roadmap-node-main:focus-visible {
  border-color: rgba(150, 223, 206, .46);
  outline: none;
}

.gf-roadmap-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(150, 223, 206, .08);
  color: #96dfce;
}

.gf-roadmap-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gf-roadmap-node-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.gf-roadmap-node-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.gf-roadmap-node-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f7fbfa;
  font-size: .98rem;
  line-height: 1.25;
}

.gf-roadmap-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1;
}

.gf-roadmap-status.is-done {
  background: rgba(36, 197, 129, .16);
  color: #b8f6d7;
  border-color: rgba(36, 197, 129, .30);
}

.gf-roadmap-status.is-progress {
  background: rgba(139, 92, 246, .18);
  color: #d8cdfd;
  border-color: rgba(139, 92, 246, .34);
}

.gf-roadmap-status.is-planned {
  background: rgba(255, 255, 255, .07);
  color: rgba(244, 247, 246, .80);
}

.gf-roadmap-node-desc {
  color: rgba(244, 247, 246, .64);
  font-size: .86rem;
  line-height: 1.35;
}

.gf-roadmap-toggle {
  justify-self: end;
  color: rgba(244, 247, 246, .68);
  font-size: .9rem;
  font-weight: 900;
}

.gf-roadmap-children {
  display: grid;
  gap: 10px;
}

.gf-roadmap-empty {
  padding: 18px;
  color: rgba(244, 247, 246, .70);
  text-align: center;
}

.gf-roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: rgba(244, 247, 246, .64);
  font-size: .78rem;
}

.gf-roadmap-legend-item {
  display: inline-flex;
  align-items: center;
}

.gf-roadmap-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 247, 246, .56);
}

.gf-roadmap-legend-item.is-done .gf-roadmap-dot {
  background: #55d993;
}

.gf-roadmap-legend-item.is-progress .gf-roadmap-dot {
  background: #9b8df2;
}

.gf-roadmap-legend-item.is-planned .gf-roadmap-dot {
  background: rgba(244, 247, 246, .56);
}

@media (max-width: 760px) {
  .gf-roadmap {
    width: min(100%, calc(100vw - 16px));
    padding: 12px 0 24px;
  }

  .gf-roadmap-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gf-roadmap-controls {
    justify-items: stretch;
  }

  .gf-roadmap-filters {
    justify-content: flex-start;
  }

  .gf-roadmap-filter {
    flex: 1 1 calc(50% - 8px);
    min-width: 126px;
  }

  .gf-roadmap-search {
    width: 100%;
  }

  .gf-roadmap-tree {
    padding: 8px;
  }

  .gf-roadmap-node {
    margin-left: calc(var(--gf-roadmap-depth, 0) * 10px);
  }

  .gf-roadmap-node-main {
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    padding: 9px;
  }

  .gf-roadmap-icon {
    width: 36px;
    height: 36px;
  }
}
