.workflow-demo {
  --workflow-lime: #b2f64a;
  --workflow-indent: clamp(12px, 6%, 30px);
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 4%, 26px);
  border: 1px solid #31382c;
  border-radius: 15px;
  background-color: #10140f;
  background-image: radial-gradient(circle at 1px 1px, #bac5ae2c 1px, transparent 1.2px);
  background-size: 16px 16px;
  box-shadow: 0 24px 48px #0005;
}

.workflow-demo__caption {
  display: grid;
  justify-items: start;
  gap: 2px;
  margin-bottom: 18px;
}

.workflow-demo__label {
  margin: 0;
  font-size: .9375rem;
  font-weight: 550;
  line-height: 1.15;
  color: #bec8b7;
}

.workflow-demo__caption strong {
  color: #f5f8ef;
  font-size: clamp(1.55rem, 2.35vw, 2.125rem);
  font-weight: 630;
  line-height: 1.04;
  letter-spacing: -.023em;
}

.workflow-demo__mail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: var(--workflow-indent);
  padding: 11px 12px;
  border: 1px solid #495542;
  border-radius: 8px;
  background: #1c251b;
}

.workflow-demo__envelope {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  height: 35px;
  border-radius: 5px;
  background: #303f29;
  color: var(--workflow-lime);
}

.workflow-demo__envelope::before {
  content: '';
  width: 16px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.workflow-demo__envelope::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.workflow-demo__subject {
  margin: 3px 0 0;
  color: #f5f8ef;
  font-size: 1.125rem;
  font-weight: 630;
  line-height: 1.14;
}

.workflow-demo__route {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  isolation: isolate;
  min-height: 41px;
  padding: 5px 2px 5px 22px;
  color: #d6ebc1;
  font-size: .9375rem;
  font-weight: 540;
  line-height: 1.15;
}

.workflow-demo__route::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 1px;
  background: #83b74b;
}

.workflow-demo__node {
  flex: 0 0 17px;
  height: 17px;
  border: 5px solid #25351c;
  border-radius: 50%;
  outline: 1px solid #749d50;
  background: var(--workflow-lime);
}

.workflow-demo__record {
  min-width: 0;
  margin-left: var(--workflow-indent);
  padding: 13px 14px 12px;
  border: 1px solid #e6efd7;
  border-radius: 6px 10px 10px 10px;
  background: #e7efde;
  color: #172311;
  box-shadow: 0 9px 20px #02080055;
}

.workflow-demo__record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-demo__record .workflow-demo__label {
  color: #4c6245;
}

.workflow-demo__record-title {
  margin: 3px 0 0;
  font-size: clamp(1.25rem, 1.65vw, 1.5rem);
  font-weight: 690;
  line-height: 1.03;
  letter-spacing: -.022em;
}

.workflow-demo__document {
  position: relative;
  flex: 0 0 17px;
  height: 21px;
  border: 1px solid #586e4f;
  border-radius: 3px;
}

.workflow-demo__document::before {
  content: '';
  position: absolute;
  inset: 6px 3px auto;
  height: 5px;
  border-top: 1px solid #586e4f;
  border-bottom: 1px solid #586e4f;
}

.workflow-demo__fields {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 10px;
  margin: 11px 0 0;
  padding: 9px 0;
  border-top: 1px solid #aebfa5;
  border-bottom: 1px solid #aebfa5;
}

.workflow-demo__fields dt {
  color: #4c6245;
  font-size: .9375rem;
  font-weight: 550;
  line-height: 1.1;
}

.workflow-demo__fields dd {
  margin: 3px 0 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.15;
}

.workflow-demo__record-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  padding-top: 9px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.18;
}

.workflow-demo__pending,
.workflow-demo__review {
  margin: 0;
}

.workflow-demo__pending {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #60320d;
}

.workflow-demo__pending > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  height: 16px;
  border: 1px solid #88531f;
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-size: .6875rem;
}

.workflow-demo__review {
  color: #314b25;
}

@media (max-width: 380px) {
  .workflow-demo__record { padding-inline: 11px; }
  .workflow-demo__fields { gap: 7px; }
}
