.linked-lists [hidden] {
  display: none !important;
}

.linked-admin-panel {
  margin-top: 18px;
}

.linked-editor-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.linked-editor-section {
  border-top: 0;
  padding-top: 0;
}

.linked-list-picker {
  margin-top: 10px;
}

.linked-editor-section .builder-item {
  min-width: 0;
}

.builder-item-copy {
  min-width: 0;
}

.builder-item-copy small {
  display: block;
  color: #748096;
}

.linked-editor-section .builder-item-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.linked-editor-section .builder-item.empty .builder-item-copy > span {
  color: #8894a5;
}

.linked-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.linked-tab {
  border: 2px solid transparent;
  background: #edf0f5;
  color: #29354b;
}

.linked-tab.completed {
  background: #168e2c;
  color: #fff;
}

.linked-tab.skipped {
  background: #8894a5;
  color: #fff;
}

.linked-tab.active {
  background: #3157d5;
  border-color: #3157d5;
  color: #fff;
}

.linked-tab.completed.active {
  background: #0ec42f;
  border-color: #0ec42f;
  color: #fff;
}

.linked-tab.skipped.active {
  background: #8894a5;
  border-color: #3157d5;
  color: #fff;
}

.linked-tab.duplicate-registered {
  color: #29354b;
  background: #edf0f5;
  cursor: not-allowed;
  opacity: 0.75;
}

.linked-tab.duplicate-registered::after {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: middle;
  background: #168e2c;
  content: "";
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask: var(--svg) no-repeat center / contain;
  mask: var(--svg) no-repeat center / contain;
}

.linked-pair.duplicate-registered .linked-pair-skip {
  display: none;
}

.linked-pair-skip {
  margin-top: 8px;
  margin-left: 5px;
}

.registration-form .optional-skip,
.registration-form .linked-pair-skip {
  align-items: center;
}

.registration-form .optional-skip > input,
.registration-form .linked-pair-skip > input {
  margin-top: 0;
}

.linked-pair-footer {
  margin-top: 0;
  padding-top: 20px;
  border-top: 1px solid #dce1ea;
}

.linked-progress-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  min-width: 0;
}

.linked-progress-step-2 {
  margin-top: 22px;
}

.linked-progress-marker {
  position: relative;
  min-height: 34px;
  color: #8894a5;
}

.linked-progress-step-2 .linked-progress-marker {
  padding-top: 20px;
}

.linked-progress-marker > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #cbd2df;
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.linked-progress-marker > span::before {
  display: block;
  width: 24px;
  height: 24px;
  background: currentColor;
  content: "";
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask: var(--svg) no-repeat center / 100% 100%;
  mask: var(--svg) no-repeat center / 100% 100%;
}

.linked-progress-marker::before,
.linked-progress-marker::after {
  position: absolute;
  left: 11px;
  width: 2px;
  border-radius: 2px;
  background: #cbd2df;
  content: "";
  transition: background-color 0.15s ease;
}

.linked-progress-step-1 .linked-progress-marker::before {
  display: none;
}

.linked-progress-step-1 .linked-progress-marker::after {
  top: 30px;
  bottom: -36px;
}

.linked-pair:not(.has-footer) .linked-progress-step-1 .linked-progress-marker::after {
  bottom: 0;
}

.linked-progress-step-2 .linked-progress-marker::before {
  top: 0;
  height: 14px;
}

.linked-progress-step-2 .linked-progress-marker::after {
  top: 50px;
  bottom: 18px;
}

.linked-pair.progress-step-1-complete .linked-progress-step-1 .linked-progress-marker > span,
.linked-pair.progress-step-2-complete .linked-progress-step-2 .linked-progress-marker > span {
  background: transparent;
  color: #3157d5;
}

.linked-pair.progress-step-1-complete .linked-progress-step-1 .linked-progress-marker > span::before,
.linked-pair.progress-step-2-complete .linked-progress-step-2 .linked-progress-marker > span::before {
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='m9 12l2 2l4-4'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/g%3E%3C/svg%3E");
}

.linked-pair.progress-step-1-complete .linked-progress-step-1 .linked-progress-marker::after,
.linked-pair.progress-step-1-complete .linked-progress-step-2 .linked-progress-marker::before,
.linked-pair:not(.has-footer).progress-step-1-complete .linked-progress-step-1 .linked-progress-marker::after,
.linked-pair.progress-step-2-complete .linked-progress-step-2 .linked-progress-marker::after {
  background: #3157d5;
}

.linked-pair.progress-pair-skipped .linked-progress-marker > span,
.linked-pair.progress-pair-skipped .linked-progress-marker::before,
.linked-pair.progress-pair-skipped .linked-progress-marker::after {
  background: #edf0f5;
  color: #68748a;
}

.linked-pair.progress-pair-skipped .linked-progress-marker::before,
.linked-pair.progress-pair-skipped .linked-progress-marker::after {
  background: #cbd2df;
}

.linked-tab-pane {
  display: none;
}

.linked-tab-pane.active {
  display: block;
}

.linked-list-block h3 {
  margin: 0 0 10px;
}

@media (max-width: 760px) {
  .linked-editor-columns {
    grid-template-columns: 1fr;
  }

  .linked-progress-step {
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 8px;
  }

  .linked-pair-skip {
    margin-left: 5px;
  }
}
